A New Dragon in the Den: Fast Conversion From Floating-Point Numbers
Bicho de sete cabeças. It's not a seven-headed beast. It's not rocket science.Cassio Neri Fast conversion from floating-point numbers CppCon 2024 - Aurora (Independent Researcher)MeMe O Neri's equationMe https://godbolt.org/z/qh4zdzqG61 2 3 Integer to string #hundreds 1 / 10 / 10 1 2 3 % 10 % 10 % 10 #units 123 #tens 121 2 3 Integer to string #hundreds 1 / 10 and thus, . F u v v − u = 10 F > 2E The larger , the shorter . F n We set to be the largest integer such that , i.e., F 10 F ≤ 2E u vTejú Jaguá - Ⅰ n × 10 F ≅ m × 2E 2E There must be some inside0 码力 | 171 页 | 6.42 MB | 5 月前3julia 1.10.10
constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180 14 Conversion and Promotion 182 14.1 Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Base and the standard library are written in Julia itself, including primitive operations like integer arithmetic • A rich language of types for constructing and describing objects, that can also optionally floating- point numbers as immediate values in code are known as numeric literals. For example, 1 is an integer literal, while 1.0 is a floating-point literal; their binary in-memory representations as objects0 码力 | 1692 页 | 6.34 MB | 3 月前3Julia 1.10.9
constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180 14 Conversion and Promotion 182 14.1 Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Base and the standard library are written in Julia itself, including primitive operations like integer arithmetic • A rich language of types for constructing and describing objects, that can also optionally floating- point numbers as immediate values in code are known as numeric literals. For example, 1 is an integer literal, while 1.0 is a floating-point literal; their binary in-memory representations as objects0 码力 | 1692 页 | 6.34 MB | 3 月前3Julia 1.11.5 Documentation
just callable objects . . . . . . . . . . . . . . . . . . . . . . . . . 190 15 Conversion and Promotion 192 15.1 Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Base and the standard library are written in Julia itself, including primitive operations like integer arithmetic • A rich language of types for constructing and describing objects, that can also optionally floating- point numbers as immediate values in code are known as numeric literals. For example, 1 is an integer literal, while 1.0 is a floating-point literal; their binary in-memory representations as objects0 码力 | 2007 页 | 6.73 MB | 3 月前3Julia 1.11.6 Release Notes
just callable objects . . . . . . . . . . . . . . . . . . . . . . . . . 190 15 Conversion and Promotion 192 15.1 Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Base and the standard library are written in Julia itself, including primitive operations like integer arithmetic • A rich language of types for constructing and describing objects, that can also optionally floating- point numbers as immediate values in code are known as numeric literals. For example, 1 is an integer literal, while 1.0 is a floating-point literal; their binary in-memory representations as objects0 码力 | 2007 页 | 6.73 MB | 3 月前3Julia 1.11.4
just callable objects . . . . . . . . . . . . . . . . . . . . . . . . . 190 15 Conversion and Promotion 192 15.1 Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Base and the standard library are written in Julia itself, including primitive operations like integer arithmetic • A rich language of types for constructing and describing objects, that can also optionally floating- point numbers as immediate values in code are known as numeric literals. For example, 1 is an integer literal, while 1.0 is a floating-point literal; their binary in-memory representations as objects0 码力 | 2007 页 | 6.73 MB | 3 月前3Julia 1.12.0 RC1
just callable objects . . . . . . . . . . . . . . . . . . . . . . . . . 190 15 Conversion and Promotion 192 15.1 Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Base and the standard library are written in Julia itself, including primitive operations like integer arithmetic • A rich language of types for constructing and describing objects, that can also optionally floating- point numbers as immediate values in code are known as numeric literals. For example, 1 is an integer literal, while 1.0 is a floating-point literal; their binary in-memory representations as objects0 码力 | 2057 页 | 7.44 MB | 3 月前3Julia 1.12.0 Beta4
just callable objects . . . . . . . . . . . . . . . . . . . . . . . . . 190 15 Conversion and Promotion 192 15.1 Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Base and the standard library are written in Julia itself, including primitive operations like integer arithmetic • A rich language of types for constructing and describing objects, that can also optionally floating- point numbers as immediate values in code are known as numeric literals. For example, 1 is an integer literal, while 1.0 is a floating-point literal; their binary in-memory representations as objects0 码力 | 2057 页 | 7.44 MB | 3 月前3Julia 1.12.0 Beta3
just callable objects . . . . . . . . . . . . . . . . . . . . . . . . . 190 15 Conversion and Promotion 192 15.1 Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Base and the standard library are written in Julia itself, including primitive operations like integer arithmetic • A rich language of types for constructing and describing objects, that can also optionally floating- point numbers as immediate values in code are known as numeric literals. For example, 1 is an integer literal, while 1.0 is a floating-point literal; their binary in-memory representations as objects0 码力 | 2057 页 | 7.44 MB | 3 月前3julia 1.12.0 beta1
just callable objects . . . . . . . . . . . . . . . . . . . . . . . . . 191 15 Conversion and Promotion 193 15.1 Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Base and the standard library are written in Julia itself, including primitive operations like integer arithmetic • A rich language of types for constructing and describing objects, that can also optionally floating- point numbers as immediate values in code are known as numeric literals. For example, 1 is an integer literal, while 1.0 is a floating-point literal; their binary in-memory representations as objects0 码力 | 2047 页 | 7.41 MB | 3 月前3
共 146 条
- 1
- 2
- 3
- 4
- 5
- 6
- 15