This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's z80 & ez80 Assembly subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Z80 & 68k Assembly => z80 & ez80 Assembly
Author Message
Shoester


Newbie


Joined: 02 Jun 2003
Posts: 8

Posted: 27 Jun 2003 01:55:25 pm    Post subject:

Hey i was wondering what the best way to represent floating point numbers by using fixed point numbers is.
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 27 Jun 2003 03:11:44 pm    Post subject:

i know there is a round function... try this! (ur floating point number is in op1...)
Code:
     ld a,3
     bcall(_dispop1a)
make sense? that will display it at the pen coords with 3 decimals... if u do this before it will be in big txt :
Code:
set FracDrawLFont,(IY + FontFlags)
but u muse remember to reset it when ur done...

Last edited by Guest on 27 Jun 2003 03:12:00 pm; edited 1 time in total
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement