mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 01:06:48 +08:00
Merge pull request #159 from huangqinjin/replace-utf8-chars
Replace utf8 chars.
This commit is contained in:
commit
6d0423720f
@ -17,11 +17,11 @@ namespace fast_float {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The smallest non-zero float (binary64) is 2^−1074.
|
* The smallest non-zero float (binary64) is 2^-1074.
|
||||||
* We take as input numbers of the form w x 10^q where w < 2^64.
|
* We take as input numbers of the form w x 10^q where w < 2^64.
|
||||||
* We have that w * 10^-343 < 2^(64-344) 5^-343 < 2^-1076.
|
* We have that w * 10^-343 < 2^(64-344) 5^-343 < 2^-1076.
|
||||||
* However, we have that
|
* However, we have that
|
||||||
* (2^64-1) * 10^-342 = (2^64-1) * 2^-342 * 5^-342 > 2^−1074.
|
* (2^64-1) * 10^-342 = (2^64-1) * 2^-342 * 5^-342 > 2^-1074.
|
||||||
* Thus it is possible for a number of the form w * 10^-342 where
|
* Thus it is possible for a number of the form w * 10^-342 where
|
||||||
* w is a 64-bit value to be a non-zero floating-point number.
|
* w is a 64-bit value to be a non-zero floating-point number.
|
||||||
*********
|
*********
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user