flat assembler
Message board for the users of flat assembler.
Index
> Windows > Printing numbers in Windows |
Author |
|
revolution 30 Aug 2024, 23:55
What are you displaying to, a GUI window, the console, a file, a socket, to memory?
What base are you converting to? Do you want to use inbuilt APIs like wsprintf or you want to write your own conversion code? What numbers are you dealing with, 32/64 bit, arbitrary precision? Integer or float? |
|||
30 Aug 2024, 23:55 |
|
Stancliff 31 Aug 2024, 00:27
displaying to edit control.
base can vary, mainly 10 and hex. inbuilt is easier to trust, but I have guidance for my own formatting code if I need to make my own. In that case I would convert to a string and just print that. 32 bit int, signed and unsigned, might need float in a few months. |
|||
31 Aug 2024, 00:27 |
|
bitRAKE 31 Aug 2024, 09:04
This is probably the most requested topic on the board - dozens of threads regarding conversion between various units:
Most recent thread ... https://board.flatassembler.net/topic.php?t=22978 Float https://board.flatassembler.net/topic.php?t=9338 Hexadecimal https://board.flatassembler.net/topic.php?t=9432 Searching the board sometimes is more effective through external search engines. _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
31 Aug 2024, 09:04 |
|
uu 31 Aug 2024, 09:11
ShowHex routine by the author of flat assembler himself, which is widely used in my programs.
https://board.flatassembler.net/topic.php?p=219984#219984 |
|||
31 Aug 2024, 09:11 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.