Skip to content

Truncating division operator (~/) provides wrong result on the DartVM  #23238

Closed
@DartBot

Description

@DartBot

This issue was originally filed by @a14n


With Dart SDK version 1.9.3 the following operation provide a wrong result on the DartVM:

    
    main() {
      print(3276800000000000000000000000000000000000000000000000000000000000000000000000000000000000 ~/ 5);
    }

The result is 158036763590213357844617751853179159899543849202652282559536023106840502987466624466944 but it should be 3276800000000000000000000000000000000000000000000000000000000000000000000000000000000000 .

Metadata

Metadata

Assignees

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions