cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Move decimal place to left a certain num
Move decimal place to left a certain number of times. (No standard library preferred)
Jun 1, 2017 at 8:18pm UTC
Varscott11
(3)
Lets say that I have a float of 3.525. Would it be possible without standard libraries to move the decimal place 2 over to the left twice such that it becomes 32.55?
Jun 1, 2017 at 8:28pm UTC
keskiverto
(10366)
Divide by 100?
Jun 1, 2017 at 8:34pm UTC
Varscott11
(3)
Wow. That was such a simple answer but an effective one.
Topic archived. No new replies allowed.