remquo(n)
π remquo(n) β Tcl Float Remainder π
okay bestie, welcome to the remquo(n) page β weβre doing floating-point remainder math and itβs honestly kind of iconic. π«Ά
πΈ NAME πΈ
remquo β Compute floating point remainder and quadrant determinant
β¨ SYNOPSIS β¨
package require tcl 9.1
remquo x y
π DESCRIPTION π
okay so the remquo command computes the floating-point remainder of x/y, much like the remainder function. no cap, thatβs the main-character move.
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. yes bestie, itβs giving βmath but make it a little mysterious.β π₯
π EXAMPLE π
lassign [remquo 12.3 3.89] rem quo
puts "rem=$rem, quo=$quo"
# rem=0.6300000000000003, quo=3
run it, get that exact little output, slay. π
π¦ SEE ALSO π¦
go peek at those too, iykyk. π
π KEYWORDS π
floating point β thatβs the keyword, periodt. β
π«Ά signed off by Tcl 9.1, page remquo(n) β and the footer didnβt include a date, so no date for us, bestie. π
π¦ where this page comes from
- nixpkgs unstable: tcl 9.1.0
- Copyright (c) 2025 Donal Fellows
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms