Loading

ns


date
Since v1.0.0
Available on all platforms
See also

Configuration parameters


Converts a number of nanoseconds (positive or negative) in the platform's time unit.

The time unit depends on the platform configuration warp.timeunits (microseconds by default on a standalone).

It consumes a number of nanoseconds from the top of the stack and pushes back the number of time units corresponding.

If you ask for a lower unit than the platform configuration, you will get a long rounded to the closest value.

Signature

Examples

1000 ns -2 ns 499 ns