flat assembler
Message board for the users of flat assembler.

Index > Main > Sample FASM .INC Converts 64 Bit Number To ASCII String

Author
Thread Post new topic Reply to topic
fasm007



Joined: 28 Apr 2007
Posts: 8
Location: USA:State Of Georgia
fasm007 04 May 2007, 00:01
This sample include file, written in fasmw, contains a function to convert 64 bit (63 bit positive) numbers to an ascii string. It uses the FPU's floating point functions. It can also add commas to the string. (I must add, this code is a bit gunky. I have found and fixed several bugs in it, so use with caution)
I tested a function by fasm user, El Tangas, which converts 32 bit numbers to an ascii string, and it is about 4 or 5 times faster than my function, but is limited to 32 bit numbers. So, if you need 64 bit numbers this works.


Description: vs.1.0.3 with some kind-of bad bug fixes and an enhancement.
Download
Filename: num64dig.inc
Filesize: 14.79 KB
Downloaded: 353 Time(s)


_________________
Seriously


Last edited by fasm007 on 05 May 2007, 18:51; edited 1 time in total
Post 04 May 2007, 00:01
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.