vantage icon indicating copy to clipboard operation
vantage copied to clipboard

Vantage Command Missing Number Data

Open CyberTianzun opened this issue 9 years ago • 1 comments

in vantage i input the following command:

$ start test 1111111112312345425
{ options: {}, platform: 'test', uid: 1111111112312345500 }

1111111112312345425 missing the ending data 1111111112312345500 ???

1111111112312345425
1111111112312345500

i have tried the newest version "commander". it hasn't this bug. is this vantage bug?

CyberTianzun avatar Nov 18 '16 10:11 CyberTianzun

Sounds like a rounding problem.

Number.isSafeInteger(1111111112312345425) returns false so it can't be represented as an integer in JavaScript.

In other words: 1111111112312345425 === 1111111112312345500 is true.

FYI: Number.MAX_SAFE_INTEGER is 9007199254740991.

pluma avatar Nov 18 '16 10:11 pluma