1. 25%0. 5 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

1. 25%0. 5

explan please

12th Nov 2016, 7:37 PM
Chandrasekar.R
Chandrasekar.R - avatar
5 Answers
+ 2
What answer does it give you?
12th Nov 2016, 7:38 PM
Keto Z
Keto Z - avatar
+ 1
it will probably give you the remainder after division. as in c language it is remembered as modulo operator in arithematic operator. may be i am wrong.
12th Nov 2016, 7:41 PM
Muhammad Huzefa Gul
Muhammad Huzefa Gul - avatar
+ 1
If the decimals are weird, you can multiply everything by 100, calculate...then divide the 100 back out of the remainder and reduce: 1.25*100=125 0.5*100=50 125 % 50 = 25 25/100 = 1/4 = 0.25 You already have your answer so this is just a way to conceptualize (it works because all the digits are related to 10).
12th Nov 2016, 8:25 PM
Kirk Schafer
Kirk Schafer - avatar
0
I am understand 1. 25%0. 5=2. 5 0. 5 is multiplied by 0. 5 get 0. 25 thanking you
12th Nov 2016, 8:04 PM
Chandrasekar.R
Chandrasekar.R - avatar
0
It's simple. 1.25 % 0.50 is 0.25 because 1.25 / 0.50 == 2 with the 0.25 with the rest Modulo operator(%) returns the rest of the division.
12th Nov 2016, 9:58 PM
Davor