Library tutorials & articles
Mathematical Functions
By James Crowley, published on 14 Jul 2001
Math Constants
To get e raised to a power, call the Exp function:
Exp(1) ' returns e (2.71828182845905)
Exp(2) ' returns e to the power of 2 (7.38905609893065)
To find pi, call the Atn function, passing the value 1, and multiply the answer by 4:
Dim pi As Single
pi = 4 * Atn(1) ' Calculate the value of pi.
Related articles
Related discussion
-
VB6 Runtime error 381 subsript out of range Error
by Uncle (2 replies)
-
passing and reading parameters from using Shell
by jigartoliya (0 replies)
-
Convert C++ code to VB6
by mawcot (4 replies)
-
listbox scrollbar
by Dennijr (10 replies)
-
Can you describe Above simple VB6 code?
by pramodmca09 (0 replies)
Related podcasts
-
Christian Beauclair
14 mai 2008 (�mission #0074) ::.Christian Beauclair: Stratégies de migration VB6 vers .NET Nous discutons avec Christian Beauclair des stratégies de migration VB6 vers .NET. Entre autres, nous discutons comment utiliser le "VB 6 Code Advisor" et le "Interop Forms Toolkit" pour ajouter la puiss...
Comments
Leave a comment
Sign in or Join us (it's free).