Home | Forums | What's new | Resources | |
How to format numbers properly? |
slinga - Aug 26, 2003 |
vbt | Aug 26, 2003 | ||||
why not using a sprintf ?
Code:
|
vreuzon | Aug 27, 2003 | ||||
The sprintf is a good solution. You have to
Code:
in order to use it. random doc : ttp://www.cplusplus.com/ref/cstdio/sprintf.html |
vreuzon | Aug 29, 2003 | ||||
What is this floating point emulation library ? I can compile
Code:
without linking to anything particular. Am I missing something ? |
vreuzon | Aug 29, 2003 | ||||
Yes, but it is hard not to use floats, as it is even used in sl macros : from sl_def.h
Code:
|
slinga | Aug 29, 2003 | |||
Thanks for your responses guys. sldisphex: displays hex argh. sprintf: works, but the text seems to be in slightly different positions. Oh well I'll fomart it again. iprintf: I couldn't ge this to work. |
antime | Aug 30, 2003 | ||||
As long as those macros are used only in constant expressions, they should be optimized away at compile-time. |