Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit ca3d830

Browse files
committed
#146 cache calculations
1 parent 0fc324f commit ca3d830

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/main/eo/org/eolang/math/number.eo

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,18 @@
7676
# Checking if number is floatint point 0.0 or -0.0
7777
[] > is-float-zero
7878
^.n > value!
79+
0.0.as-bytes > pos-zero-as-bytes!
80+
-0.0.as-bytes > neg-zero-as-bytes!
7981
if. > @
8082
eq.
8183
value.as-bytes
82-
0.0.as-bytes
84+
pos-zero-as-bytes
8385
eq.
8486
value.neg.as-bytes
85-
-0.0.as-bytes
87+
neg-zero-as-bytes
8688
eq.
8789
value.neg.as-bytes
88-
0.0.as-bytes
90+
pos-zero-as-bytes
8991

9092
# Checking if number is NaN
9193
[] > is-nan

0 commit comments

Comments
 (0)