aboutsummaryrefslogtreecommitdiff
path: root/core/math
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2023-11-24 14:16:19 +0100
committerGitHub <noreply@github.com>2023-11-24 14:16:19 +0100
commit9ea88f1353ba787abe1d129b6ad7bf924e2e5083 (patch)
treeb5f3dd3818dfec1513b9127882bd9c68c11e2ba5 /core/math
parent4d89249caf2f07716db8a21ccf065bb9a73afa98 (diff)
parent4a4aca6829a97ebfcdab3bdd84ca0524002a6cd8 (diff)
Merge pull request #2918 from flysand7/math-doc
[math]: Fix the doc comments on `F64_*` constants
Diffstat (limited to 'core/math')
-rw-r--r--core/math/math.odin22
1 files changed, 11 insertions, 11 deletions
diff --git a/core/math/math.odin b/core/math/math.odin
index dddff4079..696293f70 100644
--- a/core/math/math.odin
+++ b/core/math/math.odin
@@ -2312,17 +2312,17 @@ F32_NORMALIZE :: 0
F32_RADIX :: 2
F32_ROUNDS :: 1
-F64_DIG :: 15 // # of decimal digits of precision
-F64_EPSILON :: 2.2204460492503131e-016 // smallest such that 1.0+F64_EPSILON != 1.0
-F64_MANT_DIG :: 53 // # of bits in mantissa
-F64_MAX :: 1.7976931348623158e+308 // max value
-F64_MAX_10_EXP :: 308 // max decimal exponent
-F64_MAX_EXP :: 1024 // max binary exponent
-F64_MIN :: 2.2250738585072014e-308 // min positive value
-F64_MIN_10_EXP :: -307 // min decimal exponent
-F64_MIN_EXP :: -1021 // min binary exponent
-F64_RADIX :: 2 // exponent radix
-F64_ROUNDS :: 1 // addition rounding: near
+F64_DIG :: 15 // Number of representable decimal digits.
+F64_EPSILON :: 2.2204460492503131e-016 // Smallest number such that `1.0 + F64_EPSILON != 1.0`.
+F64_MANT_DIG :: 53 // Number of bits in the mantissa.
+F64_MAX :: 1.7976931348623158e+308 // Maximum representable value.
+F64_MAX_10_EXP :: 308 // Maximum base-10 exponent yielding normalized value.
+F64_MAX_EXP :: 1024 // One greater than the maximum possible base-2 exponent yielding normalized value.
+F64_MIN :: 2.2250738585072014e-308 // Minimum positive normalized value.
+F64_MIN_10_EXP :: -307 // Minimum base-10 exponent yielding normalized value.
+F64_MIN_EXP :: -1021 // One greater than the minimum possible base-2 exponent yielding normalized value.
+F64_RADIX :: 2 // Exponent radix.
+F64_ROUNDS :: 1 // Addition rounding: near.
F16_MASK :: 0x1f