flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > How in macro convert text to int or float number ?

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1618
Roman 16 Apr 2023, 18:25
Quote:
3.2*1.8-2.1/7.8**-0.1+sqrt(7.02)

And Sin and cos
Post 16 Apr 2023, 18:25
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 19871
Location: In your JS exploiting you and your system
revolution 16 Apr 2023, 18:26
Quaternions.
Code:
(3+2i+3j+5k)^(1+7i-5j+9k) = 0.000163160156311-4.84485065814e-06i+9.05431387485e-06j-1.53188663789e-05k    


Last edited by revolution on 16 Apr 2023, 18:33; edited 3 times in total
Post 16 Apr 2023, 18:26
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1618
Roman 16 Apr 2023, 18:28
Quote:
Quaternions.

And matrices multiplication Smile
Post 16 Apr 2023, 18:28
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1618
Roman 16 Apr 2023, 18:47
Macro convert text to int ?

IntDat "24005501" ;convert dd 24005501
Post 16 Apr 2023, 18:47
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8266
Location: Kraków, Poland
Tomasz Grysztar 16 Apr 2023, 19:06
Roman wrote:
Macro convert text to int ?

IntDat "24005501" ;convert dd 24005501
Replace
Code:
define buffer f    
with
Code:
define buffer d    
Post 16 Apr 2023, 19:06
View user's profile Send private message Visit poster's website Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 819
Location: Russia
macomics 16 Apr 2023, 19:50
revolution wrote:
Quaternions.
And to play on the stock exchange in your free time.
Post 16 Apr 2023, 19:50
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1618
Roman 16 Apr 2023, 20:08
Problem if this:
Code:
intDat " 16" ;not 16 get very big value
intDat "16 " ;not 16 get dd 0
    
Post 16 Apr 2023, 20:08
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< 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-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.