Click to See Complete Forum and Search --> : How Can I Do This PLEASE READ ME
XxEvilxX
Nov 6th, 1999, 02:02 AM
how can i dived 2 numbers and make then show up to 500 digigt wit hi do this
---------------------------------------------
code:
text3.text = text1.text / text2.text
---------------------------------------------
and it only comes up with the frst 10 digits i wnat it to go to 500 digits not 10
Howard Stern
Nov 6th, 1999, 02:08 AM
do you mean show 500 decimal places?
XxEvilxX
Nov 6th, 1999, 02:25 AM
yeah i dont care as long as it much more then 100 places
Howard Stern
Nov 6th, 1999, 02:28 AM
well, i can give you a hint...
Dim dbl as Double
dbl = Val(Text1.Text) / Val(Text2.Text)
Text3.Text = dbl
double will hold 300 and somethin decimal places i think, problem is it will return the number in scientific notation, so you still need to figure out how to convert it to a regular format, which im not sure how to do
------------------
I swear you guys rip on me 13 or 14 more times, i'm outta here...
XxEvilxX
Nov 6th, 1999, 03:17 AM
it dont work
Yonatan
Nov 6th, 1999, 04:03 AM
VB is incapable of doing up to 500 digits after the decimal point.
Here's a way to show 28 places: (You can do up to 324 with Double but then it will give you the scientific form of the number)
Text3.Text = CDec(Text1.Text) / CDec(Text2.Text)
The problem with this is: The more numbers you have to the right of the decimal point, the less you can have to the left...
If you have a number with 28 places after the decimal point, the number to the left of the decimal point can only go up to seven...
------------------
Yonatan
Teenage Programmer
E-Mail: RZvika@netvision.net.il
ICQ: 19552879 (http://www.icq.com/19552879)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.