4 ms·
If the price overflows 32-bit, then everyone in SF moves. :) For this script, the fetch returns at most 100 rows, so won't overflow. More broadly, the Num com
by jph 11y ago
If the price overflows 32-bit, then everyone in SF moves. :)
For this script, the fetch returns at most 100 rows, so won't overflow.
More broadly, the Num command runs using awk, and number handling depends on your system's awk implementation and C libraries. Current awk implementations use an internal representation of all numbers, including integers, that uses double-precision floating-point numbers. I know GNU awk supports arbitrary precision arithmetic, and also can use --bignum, GNU MPFR and GNU MP (GMP); these will be great additions to the Num command for the next major version upgrade.