OK, I know that it's impossible, but it was the best way to formulate the title of the question. The problem is, I'm trying to use my own custom class instead of float (for deterministic simulation) and I want to the syntax to be as close as possible. So, I certainly want to be able to write something like
FixedPoint myNumber = 0.5f;
Is it possible?
decimalis still a floating-point type. It just uses 128 bits instead of 32/64 and a decimal exponent instead of a binary one.