Description
Cette classe permet d'effectuer les fonctions mathématiques de base.
Méthode
Méthode | Prototype | Description |
---|---|---|
ABS | Function Abs(n As Decimal) As Decimal Function Abs(n As Double) As Double Function Abs(n As Integer) As Integer Function Abs(n As Long) As Long Function Abs(n As SByte) As SByte Function Abs(n As Short) As Short Function Abs(n As Single) As Single |
Ces méthodes permettent de retourner la valeur absolue d'un nombre. |
ACOS | Function Acos(n As Double) As Double | Cette méthode trigonométrique retourne l'arc cosinus. |
ASIN | Function Asin(n As Double) As Double | Cette méthode trigonométrique retourne l'arc sinus. |
ATAN | Function Atan(n As Double) As Double | Cette méthode trigonométrique retourne l'arc tangente. |
ATAN2 | Function Atan2(y As Double, x As Double) As Double | Cette méthode trigonométrique permet de retourner la valeur du calcul du quadrant et de l'angle de l'«ArcTangente» de 2 coordonnées. |
BIGMUL | Function BigMul(a As Integer, b As Integer) As Long | Cette méthode permet d'effectuer le produit de nombre de 32 bits. |
CEILING | Function Ceiling(d As Decimal) As Decimal Function Ceiling(a As Double) As Double |
Cette méthode retourne la valeur maximale d'un nombre, soit l'entier le plus proche supérieur ou égal au nombre. |
COS | Function Cos(n As Double) As Double | Cette méthode trigonométrique retourne le cosinus. |
COSH | Function Cosh(value As Double) As Double | Cette méthode trigonométrique retourne le cosinus hyperbolique. |
DIVREM | Function DivRem(a As Integer, b As Integer, ByRef result As Integer) As Integer Function DivRem(a As Long, b As Long, ByRef result As Long) As Long |
Cette méthode permet de demander le quotient et le restant de division des deux valeurs spécifiés. |
EXP | Function Exp(d As Double) As Double | Cette méthode calcul l'exponentiel de la valeur spécifié. |
FLOOR | Function Floor(d As Decimal) As Decimal Function Floor(d As Double) As Double |
Cette méthode retourne la valeur minimale d’un nombre, soit l’entier le plus proche inférieur ou égal au nombre. |
IEEEREMAINDER | Function IEEERemainder(x As Double, y As Double) As Double | Cette méthode retourne la restant d'une division selon le standard IEEE 754. |
LOG | Function Log(d As Double) As Double Function Log(a As Double, newBase As Double) As Double |
Cette méthode retourne le logarithme naturel ou népérien. |
LOG10 | Function Log10(d As Double) As Double | Cette méthode retourne le logarithme en base 10. |
MAX | Function Max(val1 As Byte, val2 As Byte) As Byte Function Max(val1 As Decimal, val2 As Decimal) As Decimal Function Max(val1 As Double, val2 As Double) As Double Function Max(val1 As Short, val2 As Short) As Short Function Max(val1 As Integer, val2 As Integer) As Integer Function Max(val1 As Long, val2 As Long) As Long Function Max(val1 As SByte, val2 As SByte) As SByte Function Max(val1 As Single, val2 As Single) As Single Function Max(val1 As UShort, val2 As UShort) As UShort Function Max(val1 As UInteger, val2 As UInteger) As UInteger Function Max(val1 As ULong, val2 As ULong) As ULong |
Ces méthodes retournent la plus grande valeur entre les deux paramètres. |
MIN | Function Min(val1 As Byte, val2 As Byte) As Byte Function Min(val1 As Decimal, val2 As Decimal) As Decimal Function Min(val1 As Double, val2 As Double) As Double Function Min(val1 As Short, val2 As Short) As Short Function Min(val1 As Integer, val2 As Integer) As Integer Function Min(val1 As Long, val2 As Long) As Long Function Min(val1 As SByte, val2 As SByte) As SByte Function Min(val1 As Single, val2 As Single) As Single Function Min(val1 As UShort, val2 As UShort) As UShort Function Min(val1 As ULong, val2 As ULong) As ULong |
Ces méthodes retournent la plus petite valeur entre les deux paramètres. |
POW | Function Pow(x As Double, y As Double) As Double | Cette méthode retourne le calcul de x à la puissance y. |
ROUND | Function Round(d As Decimal) As Decimal Function Round(a As Double) As Double Function Round(d As Decimal, decimals As Integer) As Decimal Function Round(d As Decimal, mode As MidpointRounding) As Decimal Function Round(value As Double, digits As Integer) As Double Function Round(value As Double, mode As MidpointRounding) As Double Function Round(d As Decimal, decimals As Integer, mode As MidpointRounding) As Decimal Function Round(value As Double, digits As Integer, mode As MidpointRounding) As Double |
Ces méthodes retournent la valeur arrondie d'un nombre réel en type de données entier ou avec un certain nombre de décimal. |
SIGN | Function Sign(value As Decimal) As Integer Function Sign(value As Double) As Integer Function Sign(value As Short) As Integer Function Sign(value As Long) As Integer Function Sign(value As SByte) As Integer Function Sign(value As Single) As Integer |
Cette méthode trigonométrique retourne le signe d'un nombre. |
SIN | Function Sin(a As Double) As Double | Cette méthode trigonométrique retourne le sinus. |
SINH | Function Sinh(value As Double) As Double | Cette méthode trigonométrique retourne le sinus hyperbolique. |
SQRT | Function Sqrt(d As Double) As Double | Cette méthode retourne la racine carré du nombre spécifié. |
TAN | Function Tan(a As Double) As Double | Cette méthode trigonométrique retourne la tangente. |
TANH | Function Tanh(value As Double) As Double | Cette méthode trigonométrique retourne la tangente hyperbolique. |
TRUNCATE | Function Truncate(d As Decimal) As Decimal Function Truncate(d As Double) As Double |
Cette méthode permet de retourner la partie entière d'un nombre. |
Dernière mise à jour : Dimanche, le 9 novembre 2014