Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 5, 2018. It is now read-only.
This repository was archived by the owner on Dec 5, 2018. It is now read-only.

text messes up large integers #273

Open
@lgto4

Description

@lgto4

The text function messages up large integer values. For example

var n = 72723460248141;
background(255, 0, 0);
text(n, 100, 100);
println(n);
println(floor(log(n)/log(2)));

shows n to be 72723460248140.992. The work around is ask Javascript to convert the number to a string before invoking text, e.g. text("" + n, ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions