flat assembler
Message board for the users of flat assembler.

Index > Windows > Floating-point constant

Author
Thread Post new topic Reply to topic
keenin



Joined: 25 Aug 2003
Posts: 33
keenin
Hi,

declaring a constant as floating-point number results in the error "value out of range".
Post 03 Oct 2003, 20:20
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7734
Location: Kraków, Poland
Tomasz Grysztar
You should put the size operator when declaring such constant, like:
Code:
const1 = dword 1.2
const2 = qword 1.2    

so the appropriate FP format will be produced.
Post 03 Oct 2003, 20:26
View user's profile Send private message Visit poster's website Reply with quote
keenin



Joined: 25 Aug 2003
Posts: 33
keenin
Thanks.
Post 03 Oct 2003, 20:45
View user's profile Send private message 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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.