|
-
Nov 6th, 1999, 03:02 AM
#1
Thread Starter
Addicted Member
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
-
Nov 6th, 1999, 03:08 AM
#2
Member
do you mean show 500 decimal places?
-
Nov 6th, 1999, 03:25 AM
#3
Thread Starter
Addicted Member
yeah i dont care as long as it much more then 100 places
-
Nov 6th, 1999, 03:28 AM
#4
Member
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...
-
Nov 6th, 1999, 04:17 AM
#5
Thread Starter
Addicted Member
-
Nov 6th, 1999, 05:03 AM
#6
Guru
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: [email protected]
ICQ: 19552879
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|