Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about converting exponential values in DT
#1
Hello,

I am trying to set a value that is represented by exponent 2^63. QTP always displays 9.22337203685478E+18. I want to display the actual number 9223372036854775808. Is there any way to do this? Will I have to create a function for this? If so, how can this be accomplished?

Thank you.
Reply
#2
Code:
a=Replace(FormatNumber(2^63,0,0,0),",","") msgbox(a)
Reply
#3
Thanks inborntester. But the number returned is rounded up the last digit
(9223372036854780000). I need the exact number 9223372036854775808.
Reply
#4
think, its native format conversion of VB compiler not able to optimise. Better you can develope you own Power function if its need is high. Logically it can ge possible with few for looks and array objects.
Reply
#5
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#6
Thank you very much Ankur this worked for me!!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Overflow error while converting a Long value to an Integer Ankesh 3 5,508 10-05-2011, 11:16 AM
Last Post: Ankesh
  how to validate combobox values with testdata values 1981.madhu@gmail.com 3 6,877 09-09-2009, 06:53 PM
Last Post: Saket
  Checking if values of Listbox/Combo box on a web page the same with values in DB? robocom 4 9,338 07-08-2009, 01:52 PM
Last Post: robocom

Forum Jump:


Users browsing this thread: 1 Guest(s)