Hexadecimal format specifier not working
For some reason this is not working and I receive an error: FormatException: Format specifier was invalid.
4 Replies
And even if I try
F.ToString("X")
it's also not workingIt's because your variable
F
is a floating point number. It needs to be an integer.
Also don't use capital letters for variable names.mtreit#6470
REPL Result: Success
Console Output
Compile: 648.175ms | Execution: 85.741ms | React with ❌ to remove this embed.
Okay, that worked! I didn't know it works only for integers, thanks!