bairava surya wrote:how long can be stored in float as size of long is greater than float?
how long can be stored in float as size of long is greater than float?
Brian Brumpton wrote:I know Roel already posted a link where you'll find the answer. I hope you don't mind me replying but I wanted to take a stab at explaining it to test my knowledge and understanding.
Brian Brumpton wrote:
Java implicitly casts a smaller size primitive type to the larger size primitive type, there is no need to write the explicit cast in your code.
Brian Brumpton wrote:I know Roel already posted a link where you'll find the answer. I hope you don't mind me replying but I wanted to take a stab at explaining it to test my knowledge and understanding.
...
Java implicitly casts a smaller size primitive type to the larger size primitive type, there is no need to write the explicit cast in your code.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
There are three kinds of actuaries: those who can count, and those who can't.
Since both IEEE754 numbers and two's complement numbers are deterministic, that has probably been done. But I don't fancy repeating the process.Piet Souris wrote: . . . Did anyone ever made some investigations on the mapping of longs to floats? . . .
Brian Brumpton wrote:I know Roel already posted a link where you'll find the answer. I hope you don't mind me replying but I wanted to take a stab at explaining it to test my knowledge and understanding.
Piet Souris wrote:Did anyone ever made some investigations on the mapping of longs to floats?
I have thought again about this.Piet Souris wrote: . . .
Did anyone ever made some investigations on the mapping of longs to floats?
. . .