diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-09 15:56:44 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-09 15:56:44 -0400 |
| commit | 29358b9cd0eea2ddf05d216d75d01dff5f0ea780 (patch) | |
| tree | 6a7776a9fbfaccc650b07dde125f5e8a31c8546e /stdlib/nums.h | |
| parent | 2ebe7893fe18c953967f602c73f6d3f32185eeb6 (diff) | |
Add some missing modulus and conversion methods for floats/ints
Diffstat (limited to 'stdlib/nums.h')
| -rw-r--r-- | stdlib/nums.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stdlib/nums.h b/stdlib/nums.h index 0b4cdc1b..af0e895b 100644 --- a/stdlib/nums.h +++ b/stdlib/nums.h @@ -24,6 +24,7 @@ CONSTFUNC bool Num$near(double a, double b, double ratio, double absolute); Text_t Num$format(double f, Int_t precision); Text_t Num$scientific(double f, Int_t precision); double Num$mod(double num, double modulus); +double Num$mod1(double num, double modulus); CONSTFUNC bool Num$isinf(double n); CONSTFUNC bool Num$finite(double n); CONSTFUNC bool Num$isnan(double n); @@ -74,6 +75,7 @@ CONSTFUNC bool Num32$near(float a, float b, float ratio, float absolute); Text_t Num32$format(float f, Int_t precision); Text_t Num32$scientific(float f, Int_t precision); float Num32$mod(float num, float modulus); +float Num32$mod1(float num, float modulus); CONSTFUNC bool Num32$isinf(float n); CONSTFUNC bool Num32$finite(float n); CONSTFUNC bool Num32$isnan(float n); |
