Explore >> Select a destination


You are here

gus-massa.blogspot.com
| | esham.io
5.0 parsecs away

Travel
| | Yet another demonstration of why you should store monetary amounts in integers.
| | orlp.net
3.8 parsecs away

Travel
| |
| | probablydance.com
9.4 parsecs away

Travel
| | Here is a rough approximation of float multiplication (source): float rough_float_multiply(float a, float b) { constexpr uint32_t bias = 0x3f76d000; return bit_cast(bit_cast(a) + bit_cast(b) - bias); } We're casting the floats to ints, adding them, adjusting the exponent, and returning as float. If you think about it for a second you will realize that since...
| | initialcommit.com
47.2 parsecs away

Travel
| In this article, we will explore the `math.ceil(...)` function. Learn how it interacts with mathematical constants and negative numbers. And compare it to the floor function `math.floor(...)`.