A simple SandBox to write and test cpp code while reading PPP. (4/8) Write a function to take a float and manually convert it to int. Since cpp can implicitly convert float to in, I want to see if I understand how at the binary level. Best guess is take the exponent and bit-shift mantra by that much. whatever is left is your int. Testing by still returning a float-if its a whole number it works.
-
Notifications
You must be signed in to change notification settings - Fork 0
FamousHero/Cpp-Sandbox
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A place to write with and play with the Cpp language.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published