Skip to content
Tcl Source Code Changes To branch/c11-functions
Login

Changes To branch/c11-functions

Changes to "branch/c11-functions" between 2026-01-03 15:59:19 and 2026-01-03 16:00:42

︙
69
70
71
72
73
74
75
76
77


78
79
80
81
82
83
84
69
70
71
72
73
74
75


76
77
78
79
80
81
82
83
84







-
-
+
+







## Nearest integer floating-point operations
|: Name         |: Description                                                            |: Tcl notes
------------------------------------------------------------------------------------------------------
| **ceil**      | computes smallest integer not less than the given value                 | Existing: `ceil()` function
| **floor**     | computes largest integer not greater than the given value               | Existing: `floor()` function
| **trunc**     | rounds to nearest integer not greater in magnitude than the given value | _This branch_
| **round**     | rounds to nearest integer, rounding away from zero in halfway cases     | Existing: `round()` function
| **nearbyint** | rounds to an integer using current rounding mode
| **rint**      | rounds to an integer using current rounding mode with exception if the result differs
| **nearbyint** | rounds to an integer using current rounding mode                        | Not implemented: no rounding mode control in Tcl
| **rint**      | rounds to an integer using current rounding mode with exception if the result differs | Not implemented: no rounding mode control in Tcl

## Floating-point manipulation functions
|: Name         |: Description                                              |: Tcl notes
----------------------------------------------------------------------------------------
| **frexp**     | breaks a number into significand and a power of 2         | _This branch_
| **ldexp**     | multiplies a number by 2 raised to a power                | _This branch_
| **modf**      | breaks a number into integer and fractional parts         | _This branch_
︙