News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

float$ macro and algo for testing

Started by jj2007, August 26, 2008, 03:48:53 PM

Previous topic - Next topic

ToutEnMasm


The mapm.lib that i have compiled with vc++2008 express,have further samples:
This one calculate Pi in five differents wayS.
Quote
PI1 = [3.141592653589793238462643383279502884197169399375105820974945]
PI2 = [3.141592653589793238462643383279502884197169399375105820974945]
PI3 = [3.141592653589793238462643383279502884197169399375105820974945]
PI4 = [3.141592653589793238462643383279502884197169399375105820974945]
PI5 = [3.141592653589793238462643383279502884197169399375105820974945]

herge

Hi Mike:

Results from a used AMD athlon 64

Press any key to continue . . .

C:\masm32\bin>FloatMw
-10     3.14159059524536130
-9      3.14159083366394040
-8      3.14159107208251950
-7      3.14159131050109860
-6      3.14159154891967770
-5      3.14159178733825680
-4      3.14159202575683590
-3      3.14159226417541500
-2      3.14159250259399410
-1      3.14159274101257320
0       3.14159297943115230
1       3.14159321784973140
2       3.14159345626831050
3       3.14159369468688960
4       3.14159393310546870
5       3.14159417152404790
6       3.14159440994262700
7       3.14159464836120610
8       3.14159488677978520
9       3.14159512519836430
10      3.14159536361694340
Press any key to exit...

Regards herge
// Herge born  Brussels, Belgium May 22, 1907
// Died March 3, 1983
// Cartoonist of Tintin and Snowy