Vocabulary/cdot

From J Wiki
Jump to navigation Jump to search

>> <<   Down to: Dyad   Back to: Vocabulary

x c. y Convert to Precision

Rank Infinity -- operates on x and y as a whole -- WHY IS THIS IMPORTANT?



Convert y to a different precision.

   9!:11 (30)
   o. 1         NB. π to double precision (~14 'safe' digits)
3.14159265358979311599796346854
   o. 11 c. 1   NB. π to double-double precision (~27 'safe' digits)
3.14159265358979323846264338289

The x argument specifies the precision of the result, i. e. (x -: 3!:0 x c. y).


Common uses

To use a precision other than the default.