text messes up large integers #273
Comments
Can you add some extra details on how it's messing up? (or include a screenshot showing it doing the wrong thing) |
@Pomax I updated the complaint to say that 72723460248141 is shown as 72723460248140.992. |
Looks like this happens with just
(note that while technically this has no effect, you don't want |
Ah, I see what's going on. Someone way back when wrote the This looks like it needs a check for |
Well, @lgto4 uses Khan's Academy Pjs spin-off, which goes w/ JS syntax in place of Java's. :-P |
@GoToLoop lol. What does the "js" in "processing-js" stand for? |
Processing interpreter written in JavaScript - the .js is the extension for the library itself, which is written in JavaScript, not for the source code it interprets, which is Processing =) (sometimes no big deal like here, sometimes a huge deal) Also note that I can't comment on any branches that aren't this one: I have no idea what other people are doing in their own forks, so if it's a bug in this project (which it is), cool. If it's only a bug in someone else's fork, they'll have to fix it (not the case here) |
The text function also crashes whole tab if called like this: (Example on khanacademy; happens on other websites that use ProcessingJs, too) |
The text function messages up large integer values. For example
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, ...
The text was updated successfully, but these errors were encountered: