Reference/reciprocal

From Kx Wiki
Jump to: navigation, search

reciprocal (reciprocal function)

Returns the reciprocal of its argument. The argument is first cast to float, and the result is float.

Syntax

q)r:reciprocal X

Example

q)reciprocal 0 0w 0n 3 10
0w 0 0n 0.3333333 0.1

For a complete list of functions, see the kdb+ Function Reference.

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox