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
Description
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, ...