Artifact f1d08221d728c5b22ccafc247e491168d3bc009022dc4b81d83702b754b17e80:
- File doc/markdown/Tcl/remquo.md — part of check-in [53d963650f] at 2026-10-05 21:52:35 on branch tip-700 — - file location re-organisation (part 2 of 2) - added manual pages from Tcl 9.1: divmod, frexp, lfilter, modf, remquo, timer; incl. final conversions - unified timer.n - moved 'package prefer' into the alphabetical order of the other subcommands (user: Torsten, size: 880) [annotate] [blame] [check-ins using]
CommandName: remquo title: remquo ManualSection: n Version: 9.1 TclPart: Tcl TclDescription: Tcl Float Remainder Links:
- expr(n)
- mathfunc(n) Keywords:
- floating point Copyright:
- Copyright (c) 2025 Donal Fellows ---
Name
remquo - Compute floating point remainder and quadrant determinant
Synopsis
::: {.synopsis} ::: [package]{.cmd} [require]{.sub} [tcl]{.lit} [9.1]{.lit} [remquo]{.cmd} [x]{.arg} [y]{.arg} :::
Description
The remquo command computes the floating-point remainder of x/y, much like the remainder function. Its result is a list of two values; the first value is the remainder, and the second value is an integer containing sign and bits sufficient to determine which octant the gradient was located within.
Example
lassign [remquo 12.3 3.89] rem quo
puts "rem=$rem, quo=$quo"
# rem=0.6300000000000003, quo=3