java - Use Float as Int (without conversion) in Scala -


i'm trying implement fast inverse square root algorithm in scala. algorithm involves exploiting binary representation of 32-bit floating-point number applying bitwise , integer operations binary representation, though int. in other words, must create int out of binary representation of float, not use cast operator.

i remember doing similar while in java, , believe done using static method of integer. i'm new scala, though, , can't seem find such method. how 1 in scala?


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -