frexp
frexp floatValue
The fraction and the exponent of a double, as a list. The fraction is from 0.5 to 1, and the value is the fraction times 2 to the exponent.
Examples
frexp 10gives0.625 4frexp -3gives-0.75 2
Facts
- Capability: none.
- Compute cost: one compute unit for the call, and more for the commands that it runs.
- Release: Tcl 9.1 only. A script has the command when ztcl follows Tcl 9.1, with
--tcl 9.1. See Tcl 9.1.