How to control a point. Help me please | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to control a point. Help me please

How to control a point, that is, move it to the right or left by several digits?

7th Dec 2017, 6:29 AM
Игорь Бабурин
3 Answers
+ 2
You mean like, turning 1.234 into 123.4 or 123400.0? Just multiply or divide by 10 several times. 1.234 * 10 * 10 == 123.4 123.4 / 10 / 10 == 1.234
7th Dec 2017, 8:16 AM
Schindlabua
Schindlabua - avatar
+ 1
Other than *10, no!
7th Dec 2017, 8:27 AM
Schindlabua
Schindlabua - avatar
0
1.234 into 123.4. that is, there are no operations for this in C++?
7th Dec 2017, 8:23 AM
Игорь Бабурин