# how to only get the decimal of a number

the assignment that I am working on requires that you take the floating point of a number. For example, if I had 4.233, it would only give me (.233). How would I be able to do this? I tried to use the % operator; however, it does not give the exact results.

Thank You...

By: StackOverFlow - Wednesday, 7 November

# Related Posts

- Older News
- How to truncate the number of digits after the decimal StackOverFlow (Today) - Suppose, I take an irrational number, q, and an integer n, and I want to print the truncated value of q after keeping exactly n digits after the decimal. Example:...
- How does one determine if an integer is octal or decimal when it is not entered as a string? StackOverFlow (Yesterday) - I have a code that converts decimals to binary, but while testing it I noticed that if an octal was entered it would output the "wrong" result. I was wondering...
- Scratch Card - Decimal to Octal Conversion. StackOverFlow (3 days ago) - I need help in solving this:A scratch card consists of 4 sets of 5 digits (20 digits in total) e.g. [10006-12342-00081-99993] which are printed separated by a space or a...