x: Extended Precision

>> << Ndx Usr Pri Phr Dic Rel Voc !: wd Help Dictionary

Extended Precision | x: _ _ _ | Num/Denom

`x:` applies to real numbers and produces extended precision rational numbers. It applies to integers and produces extended integers. The implied comparison in`x:` is tolerant. The inverse`x:^:_1` converts rationals, including extended integers, into finite precision numbers (floating point or integer). |  | `1 x: y` is the same as`x: y` ;`` and`2 x: y` produces the two extended integers of the numerator and denominator of the argument.

       x: 1.2
    6r5

       2 x: 1.2
    6 5

       x: 1.2 _1.2 0 0.07
    6r5 _6r5 0 7r100

       x: 3j4
    |domain error
    |       x:3j4

       ] pi =: o.1
    3.14159

       x: pi
    1285290289249r409120605684

       pi - 1285290289249%409120605684
    1.49214e_13

       x:!.0 pi
    884279719003555r281474976710656

       pi - 884279719003555%281474976710656
    0

       2 x: 1r2 3r4 5r6 _7r8
     1 2
     3 4
     5 6
    _7 8

See also Section II G.

>> << Ndx Usr Pri Phr Dic Rel Voc !: wd Help Dictionary