[Jprogramming] A Tale Without End
Don Guinn
donguinn at gmail.com
Mon Feb 24 13:30:59 UTC 2014
Extended integers seems to work on base ten thousand. On J8 64 bit I get
3!:3&.>1x;10000x;100000000x
+----------------+----------------+----------------+
|e300000000000000|e300000000000000|e300000000000000|
|4000000000000000|4000000000000000|4000000000000000|
|0100000000000000|0100000000000000|0100000000000000|
|0000000000000000|0000000000000000|0000000000000000|
|2800000000000000|2800000000000000|2800000000000000|
|e300000000000000|e300000000000000|e300000000000000|
|0400000000000000|0400000000000000|0400000000000000|
|0100000000000000|0200000000000000|0300000000000000|
|0100000000000000|0100000000000000|0100000000000000|
|0100000000000000|0200000000000000|0300000000000000|
|0100000000000000|0000000000000000|0000000000000000|
| |0100000000000000|0000000000000000|
| | |0100000000000000|
+----------------+----------------+----------------+
(Had to add spaces to get the lines with blanks to line up. For some reason
copying and pasting from J likes to compress leading blanks.)
Seems a bit wasteful of space, particularly on a 64 bit system, but it
certainly speeds up converting to decimal output.
More information about the Programming
mailing list