addaptic

Reference Powers and roots

lz_cube

The number cubed.

long lz_cube( CLZNumber* leftOperand, CLZNumber* targetNumber = nullptr );

Correctly rounded, half-even. A negative number's cube is negative.

Examples

CallAnswer
lz_cube( 1.1 )1.331
lz_cube( −2 )−8

Each answer is what Addaptic printed for the call, at 36 places unless a setting is shown.

Returns

kNoError (0) when the answer is written. Otherwise an error code, with the answer flagged infinite or not-a-number; see Errors and flags.

See also