A#=3000000.0 B#=14.48 Print A#+B#
@Umpal, post #1
Numbers that consist of many digits either side of a decimal point can often give very messy results in Basic programming.
Single precision is accurate to about seven decimal digits, it is very fast and it is ideal for the vast majority of applications.
AMOS Professional double precision can handle numbers with up to 16 significant digits.
Set Double Precision
@void, post #2
This extent of accuracy will consume twice as much memory as the standard version, and it will also cause a great slowing down of calculations. It should only be used when extra accuracy is absolutely vital.
@Umpal, post #1
@sanjyuubi, post #5
@Krashan, post #7
@Umpal, post #8
W każdym razie na przykładzie z pierwszego posta na PC bez żadnych kombinacji wynik jest poprawny.Nie jest. Uruchomienie takiego oto programu spod Linuksa na x86_64:
int main(void) { float x = 300000.0f; float y = 14.48f; printf("%f\n", x + y); return 0; }
@Umpal, post #1
@Krashan, post #9