Use verbs d2f and f2d from
http://www.jsoftware.com/jwiki/Phrases/Arith
For example,
d2f '0.(3)'
1r3
2 f2d d2f '0.(3)'
0.(01)
2 f2d d2f '0.54(3)'
0.10(00101100010111111001)
Originally these verbs were designed to investigate certain artifacts caused
by ieee floats.
Hi,
I am looking for a 'fast' verb for converting decimal fractions to binary
equivalents, and that recognises recurring patterns? Any offers?
Many thanks
Ken
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm