I have one API for generate a random map tileset with a Erlang server, with safe integer JavaScript can request to API good but the problem is when is more than Number.MAX_SAFE_INTEGER
.
Then, in the server I haven't the integer becuse JavaScript send 1e+21
number in scientific notation, not 999999999999999999999
and I need the number like string not in scientific notation.
How can I get a string like "999999999999999999999"
in JavaScript for send to API that and not scientific notation string? Exists a library for arbitrary long numbers in JavaScript small only for the number? The umber is a X and Y number of position and need the correct position, and not is good a big library because need good performance for render the map in ms, is for a game in browser, not for astronomy calc.