Micro Focus QTP (UFT) Forums
cdbl("238.57") is shown as 23857 instead of 238.57 - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: cdbl("238.57") is shown as 23857 instead of 238.57 (/Thread-cdbl-238-57-is-shown-as-23857-instead-of-238-57)



cdbl("238.57") is shown as 23857 instead of 238.57 - tarunsuneja - 06-10-2012

Hi,

I'm facing a very strange issue with cdbl function.
Please help me on this.

I've a variable of type string called vIncome having a value of "238.57"

O/p of Print statements:

Print "Value of vIncome is: " & 238.57
Print "Value of cdbl(vIncome) is: " & 23857 ---- Here is the issue. It should be 238.57 instead of 23857


Please help me to resolve it.

Many thanks,

Best Regards,
Tarun Suneja


RE: cdbl("238.57") is shown as 23857 instead of 238.57 - Shridevi.Salagare - 06-14-2012

That is strenge..Are you still getting this value?