When I check the value of "float.MaxValue" I'm getting:
3.402823E+38
which is:
340,282,300,000,000,000,000,000,000,000,000,000,000
Then why when I'm trying to set a much smaller value into a float variable:
float myValue = 1234567890123456789024;
then I get an error message:
Integral constant is too large
This value is MUCH smaller then "3.402823E+38", so why am I getting an error for it?
float
and not to handle large integers. Since you can't really mix float/double with BigInteger there is not much value to constructing constant asBigInteger
to use in float/double computations down the road. – ErskineBigInteger
rather than afloat
. I would agree if I at least saw a.1
there. There's nothing in the post that says the OP wants a non-integral data-type – Weaknessfloat myValue = …
can be considered as attempt to useBigInteger
... but that's my interpretation of the post. At any rate with two duplicates and an answer OP should have enough information to resolve their problem. – Erskine