I think this would be an appropriate command to solve the problem
Say a = 12.45
then len(str(a)) = 2
and IF WE HAVE ONLY 2 DECIMAL PLACES then len(str(a)) +3 = 5
then
store str(a,len(str(a))+3,2) to c will return 12.45
Try it out.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only