- 2

Write a program ro convert 13.25178827226..... to 1325178827226...

here just remove decimal point and the desired output should not be in decimal

2nd Oct 2018, 6:43 AM
burhanuddin
burhanuddin - avatar
6 Respostas
+ 1
int(str(13.251).remove(".“))
2nd Oct 2018, 7:01 AM
Oma Falk
Oma Falk - avatar
+ 1
multiply with 10**n
2nd Oct 2018, 7:04 AM
Oma Falk
Oma Falk - avatar
+ 1
please specify what u need. It sucks to get it bit for bit.
2nd Oct 2018, 7:23 AM
Oma Falk
Oma Falk - avatar
0
if there are n numbers of decimal values there then
2nd Oct 2018, 7:02 AM
burhanuddin
burhanuddin - avatar
0
directly it should print... we cant type the no. of decimals
2nd Oct 2018, 7:18 AM
burhanuddin
burhanuddin - avatar
0
program to convert 13.2555 etc to 1325555 etc
2nd Oct 2018, 7:24 AM
burhanuddin
burhanuddin - avatar