Skip to content

A place to write with and play with the Cpp language.

Notifications You must be signed in to change notification settings

FamousHero/Cpp-Sandbox

Repository files navigation

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.

About

A place to write with and play with the Cpp language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published