2013-03-29 09:01:03 +00:00
|
|
|
\b;Type \c;float\n;
|
2013-10-10 14:10:20 +00:00
|
|
|
Ce type permet de représenter, de manière approchée, des nombres réels positifs ou négatifs. Par exemple:
|
2013-03-29 09:01:03 +00:00
|
|
|
\c;
|
|
|
|
\s; 12.9
|
|
|
|
\s; 1.125
|
|
|
|
\s; 0.002
|
|
|
|
\s; -4.1
|
|
|
|
\n;
|
2013-10-10 14:10:20 +00:00
|
|
|
Pour représenter un nombre entier (12 ou -5000 par exemple) il faut utiliser le type \c;\l;int\u cbot\int;\n;.
|
2013-03-29 09:01:03 +00:00
|
|
|
|
2014-07-01 22:16:36 +00:00
|
|
|
\t;Attention
|
|
|
|
Do not insert space or colon characters into a number. To separate the whole part from the fractional part, use a dot.
|
|
|
|
\c;
|
|
|
|
\s; Write and not
|
|
|
|
\s; 12.56 12 . 56
|
|
|
|
\s; -54.34 -54,34
|
|
|
|
\s;12895.69 12,895.69
|
|
|
|
\n;
|
2013-10-10 14:10:20 +00:00
|
|
|
\t;Le coin du spécialiste
|
|
|
|
Sachez que ce type utilise 32 bits.
|
|
|
|
La valeur maximale représentable est 3.4E+38.
|
|
|
|
La valeur minimale représentable est 3.4E-38.
|
|
|
|
|
|
|
|
\t;Voir aussi
|
|
|
|
\l;Programmation\u cbot;, \l;types\u cbot\type; et \l;catégories\u cbot\category;.
|