>>> a=10
>>> b=20
>>> "a/b is %0.6f"%(a/b)
'a/b' is 0.500,000'
>>> "a/b is %".6f"%(a/b)
'a/b' is 0.500,000'
"a/b is 0.500000" comes out What's the difference between making the input 0.6 and making it 0.6 above?
python
Wouldn't there be no difference?
In general, I understand that a decimal representation can be either .x or 0.x.
© 2024 OneMinuteCode. All rights reserved.