remquo(n)

πŸ“¦ version 9.1.0, in nixpkgs unstable

πŸ’– 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