63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
-
-
-
-
-
-
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
|
---------------------------------------------------------------------------------------
| **erf** | computes error function | _This branch_
| **erfc** | computes complementary error function | _This branch_
| **tgamma** | computes gamma function | _This branch_
| **lgamma** | computes natural (base-_e_) logarithm of the gamma function | _This branch_
## 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
|: 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
| **rint** | rounds to an integer using current rounding mode with exception if the result differs
## 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_
| **scalbn** | computes efficiently a number times `FLT_RADIX` raised to a power
| **ilogb** | extracts exponent of the given number
| **logb** | extracts exponent of the given number | _This branch_
|: 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_
| **scalbn** | computes efficiently a number times `FLT_RADIX` raised to a power | Tcl only supports `FLT_RADIX==2` systems, so frexp() equivalent
| **ilogb** | extracts exponent of the given number | Not sure why this is exists...
| **logb** | extracts exponent of the given number | _This branch_
| **nextafter** | determines next representable floating-point value towards the given value | _This branch_
| **copysign** | produces a value with the magnitude of a given value and the sign of another given value | _This branch_
| **copysign** | produces a value with the magnitude of a given value and the sign of another given value | _This branch_
## Classification and comparison
| Name | Description | Tcl notes
--------------------------------
| **fpclassify** | classifies the given floating-point value | Existing: `fpclassify` command
| **isfinite** | checks if the given number has finite value | Existing: `isfinite()` function
| **isinf** | checks if the given number is infinite | Existing: `isinf()` function
| **isnan** | checks if the given number is NaN | Existing: `isnan()` function
| **isnormal** | checks if the given number is normal | Existing: `isnormal()` function
| **signbit** | checks if the given number is negative
| **isgreater** | checks if the first floating-point argument is greater than the second
|: Name |: Description |: Tcl notes
----------------------------------------------------------------------------------------
| **fpclassify** | classifies the given floating-point value | Existing: `fpclassify` command
| **isfinite** | checks if the given number has finite value | Existing: `isfinite()` function
| **isinf** | checks if the given number is infinite | Existing: `isinf()` function
| **isnan** | checks if the given number is NaN | Existing: `isnan()` function
| **isnormal** | checks if the given number is normal | Existing: `isnormal()` function
| **signbit** | checks if the given number is negative | _This branch_
| **isgreater** | checks if the first floating-point argument is greater than the second
| **isgreaterequal** | checks if the first floating-point argument is greater or equal than the second
| **isless** | checks if the first floating-point argument is less than the second
| **islessequal** | checks if the first floating-point argument is less or equal than the second
| **islessgreater** | checks if the first floating-point argument is less or greater than the second
| **isunordered** | checks if two floating-point values are unordered | Existing: `isunordered()` function
| **isless** | checks if the first floating-point argument is less than the second
| **islessequal** | checks if the first floating-point argument is less or equal than the second
| **islessgreater** | checks if the first floating-point argument is less or greater than the second
| **isunordered** | checks if two floating-point values are unordered | Existing: `isunordered()` function
|