String manipulation question
Searider
Posts: 290
I am trying to format the printout of a number to include a fixed Decimal point.· I am using integer math and have scaled the number so it is 100 X the actual number and thus the two least significant digits should be behind a decimal place.· Example: The value in memory is 1268. I would like to display this as 12.68.· I have looked through the object exchange but have not found any basic string manipulation functions that would let me· insert the decimal point into the string. I am sure others have done this many times. I realize that it would not be too difficult to write the code to do the buffer manipulations but I would like to hear from people before I code a basic building block type of routine. Any suggestions on good approaches would be greatly appreciated.
·
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Searider
·
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Searider
Comments
Modified to have a fixed decimal point:
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Searider