I don't really know how to look this up, but I'm lost on the difference between d: and i: when printing a message or using HudMessage. can anyone clarify?
HudMessage(s:"You must find ",
d:amount, s:" ", l:goals[goaltype],
s:"\nand destroy them.";
HUDMSG_TYPEON | HUDMSG_LOG, 0, CR_TAN, 1.5, 0.8, 5.0,
0.05, 2.0);
Thanks for any help.
What's the difference between d: and i:
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
- Hindsight2020
- Posts: 261
- Joined: Wed Mar 20, 2013 3:29 am
- Location: Indiana, USA
Re: What's the difference between d: and i:
To add - also, as the wiki says, we can assume "d" stands for "decimal" and "i" stands for "integer". Both are valid. :D
- Hindsight2020
- Posts: 261
- Joined: Wed Mar 20, 2013 3:29 am
- Location: Indiana, USA
Re: What's the difference between d: and i:
Thanks for the links and info! I don’t know why I couldn’t find it on the wiki!
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: What's the difference between d: and i:
It's the same in C with printf - probably where the cue was taken from.
- MartinHowe
- Posts: 2095
- Joined: Mon Aug 11, 2003 1:50 pm
- Preferred Pronouns: He/Him
- Location: East Suffolk (UK)
Re: What's the difference between d: and i:
I imagine this is a case of giving the default representation of something its own flag: i defaults to decimal as that's what humans use, x for lowercase hexadecimal, X for uppercase hexadecimal, o for octal; etc.; I guess giving the default integer representation its own explicit flag is for consistency: don't break Principle of Least Surprise 
