## BigDecimal.add strange behavior

Method BigDecimal.add takes a long time when one argument has a big exponent (9 digits), and the second has an exponent with the different length. I’ve waited for more than 5 minutes, and it was still …

Technical knowledge for tech readers and developers

fixed-point

Method BigDecimal.add takes a long time when one argument has a big exponent (9 digits), and the second has an exponent with the different length. I’ve waited for more than 5 minutes, and it was still …

I’m looking for an existing implementation for C or D, or advice in implementing, signed and/or unsigned integer types with floating point semantics.

That is to say, an integer type that behaves as …

I’ve reached the point in a project where it makes more sense to start building some support classes for vectors and misc trigonometry than keep using ad-hoc functions. I expect there to be many C++ …

I’m writing a small RTS engine in C++ and want to use lockstep synchronisation.

As floating point determinism is something I can’t even hope to achieve, I have to use fixed point math.

How …

I’m working on a fluid dynamics Navier-Stokes solver that should run in real time. Hence, performance is important.

Right now, I’m looking at a number of tight loops that each account for a …

To make that clear, I’m not talking about how the free monad looks a lot like a fixpoint combinator applied to a functor, i.e. how Free f is basically a fixed point of f. (Not that this isn’t …

I have a coprocessor attached to the main processor. Some floating point calculations needs to be done in the coprocessor, but it does not support hardware floating point instructions, and emulation …

I’m seeing conflicting references in Oracles documentation. Is there any difference between how decimals are stored in a FLOAT and a NUMBER types in the database?

As I recall from C, et al, a float …

I want to store 3.50 into a mysql table. I have a float that I store it in, but it stores as 3.5, not 3.50. How can I get it to have the trailing zero?

The fixed point combinator doesn’t always produce the right answer given the definition:

fix f = f (fix f)

The following code does not terminate:

fix (\x->x*x) 0

Of course, fix can’t always …