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
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
16 Apr 2023, 18:25
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
16 Apr 2023, 18:26
Roman

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

And matrices multiplication
16 Apr 2023, 18:28
Roman

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

IntDat "24005501" ;convert dd 24005501
16 Apr 2023, 18:47
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    `
16 Apr 2023, 19:06
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.
16 Apr 2023, 19:50
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
```
16 Apr 2023, 20:08
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First

 Jump to: Select a forum Official----------------AssemblyPeripheria General----------------MainTutorials and ExamplesDOSWindowsLinuxUnixMenuetOS Specific----------------MacroinstructionsOS ConstructionIDE DevelopmentProjects and IdeasNon-x86 architecturesHigh Level LanguagesProgramming Language DesignCompiler Internals Other----------------FeedbackHeapTest Area
Goto page Previous  1, 2

Forum Rules:
 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum