U
unkown
Hi,
i'm writing a function in infopath which handle some calculation
my case as below:
155/3 = 51.6666666
i use the application.formatstring function to extract to nearest 2 decimal
places.
temp = Application.FormatString(155/3, "number", "numDigits:2")
the result of temp is "51.67"
but when i use temp to calculate somethings, it will hv error
coz the temp is string format, then how can i convert to number format after
extract to neatest 2 decimal places ?
i'm writing a function in infopath which handle some calculation
my case as below:
155/3 = 51.6666666
i use the application.formatstring function to extract to nearest 2 decimal
places.
temp = Application.FormatString(155/3, "number", "numDigits:2")
the result of temp is "51.67"
but when i use temp to calculate somethings, it will hv error
coz the temp is string format, then how can i convert to number format after
extract to neatest 2 decimal places ?