zarqon
Well-known member
Found what I thought was a bug in ZLib's comma-adding function, but it turned out to be a limitation of ASH's truncate() function:
Looks like it caps at 2,147,483,647... what an unusual number for an upper limit, eh? I tested and all of ASH's float-handling functions ("ashref float") have the same issue. Do we need to try to work within these limits or could mafia possibly use BigDecimals or whatever would be necessary to work with a larger range of numbers?
> ash truncate(123451.33);
Returned: 123451
> ash truncate(1234512.33);
Returned: 1234512
> ash truncate(12345123.33);
Returned: 12345123
> ash truncate(123451234.33);
Returned: 123451232
> ash truncate(1234512345.33);
Returned: 1234512384
> ash truncate(12345123456.33);
Returned: 2147483647
> ash truncate(123451234567.33);
Returned: 2147483647
Looks like it caps at 2,147,483,647... what an unusual number for an upper limit, eh? I tested and all of ASH's float-handling functions ("ashref float") have the same issue. Do we need to try to work within these limits or could mafia possibly use BigDecimals or whatever would be necessary to work with a larger range of numbers?