Skip to content

num toString() output varies between Dartium and JS execution for whole number nums #4478

Closed
@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


I am using Dart Editor Version 0.1.0.201208061534, Build 10315 with Dart SDK version 10311

If I use num.toString(), the output varies based on whether I am running my Dart program native (in Dartium) vs. running in FF/Chrome using the generated JS output by the Dart Editor. This variation in results only shows up for num values that have ZERO after the decimal (e.g., 10.0 - i.e., whole numbers). The JS code will truncate the ".0" in its output whereas the native Dartium output shows "10.0" as expected.

See attached test files. This seems like it will be an easy problem to resolve. thanks.


Attachments:
Dart-Num-Format-Differences-vs-JS.html (990 Bytes)
Num-Format-Test.dart (179 Bytes)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.closed-duplicateClosed in favor of an existing report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions