> mactvalue = left(mvalue,mvaluelen-1) What about rounding 4.666 to two digits after decimal separator?
On Mon, Jun 8, 2009 at 2:29 PM, Srinivas Pavuluru <[email protected]>wrote: > Hi > > you can also try following logic > > mvalue = "2.12" > mvaluelen = len(mvalue) > mactvalue = left(mvalue,mvaluelen-1) > msgbox mactvalue > > Thanks > Srinivas Pavuluru > > > > > > On Mon, Jun 8, 2009 at 2:23 PM, Sreedhar Mallipeddi < > [email protected]> wrote: > >> >> hi >> >> use formatnumber("2.12",1) , it will give u the excepted result. Replace >> 2.12 with ur value... >> >> Thanks, >> Sreedhar >> >> >> On Mon, Jun 8, 2009 at 10:30 PM, denka <[email protected]> wrote: >> >>> >>> Hi, >>> tried to search, did not find anything like that here. Anyways, maybe >>> someone knows. >>> I have numbers with decimals like 2.13 and 2.12. Is there a way to >>> truncate decimals in those numbers? like to be 2.1. I do not need >>> rounding up. Thank you in advance >>> >>> >>> >> >> >> -- >> Mallipeddi Sreedhar >> 91-9848871279 >> >> >> >> > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en -~----------~----~----~----~------~----~------~--~---
