Skip to content

Commit a72ccd9

Browse files
committed
spell out hex float
1 parent 16e15e7 commit a72ccd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/math.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ function frexp(x::Float64)
209209
k = int(xu >> 52) & 0x07ff
210210
if k == 0 # x is subnormal
211211
x == zero(x) && return x,0
212-
x *= 0x1p54 # normalise significand
212+
x *= 1.8014398509481984e16 # 0x1p54, normalise significand
213213
xu = reinterpret(Uint64,x)
214214
k = int(xu >> 52) & 0x07ff - 54
215215
elseif k == 0x07ff # NaN or Inf

0 commit comments

Comments
 (0)