>Alessio,
>
>You can not trust a computer in computing. Thats normal. This was the very first I ever learned about computing. It needs always a human brain to make sense out of it.
>The simplest reason is translating a decimal fraction into a binary one is imposiible, so a simple 0.1 is not that easy because a binary fraction as divided by 2 and 0.1 is 1/(2*5). This wil end up in 0b0.0001011111111111111111.....
Agnes.
1. With binary you can traslate any decimal fraction ( it is very simple to define a format with two binary integers ).
2. On VFP you can use $0.1, it is write with binary sequence, and it is traslated exactly.
Have VFP decimals ? No! Simple.
The not obvious thing is that, because VFP is not a scientific environment,
a developer expects that there are sure the decimals and optionals the double.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement