remquo
remquo dividend divisor
The remainder of remainder() and the low 3 bits of the rounded quotient with the sign of the quotient, as a list.
Examples
remquo 7 2gives-1.0 4remquo 100 3gives1.0 1
Errors
remquo 7 0gives the errordomain error: argument not in valid range
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.
Differences from Tcl 8.6
- tclsh 9.1.0 gives NaN and an undefined quotient for a zero divisor or an infinite dividend. ztcl gives a domain error, as
remainder()does.