I am aware that when using the printf
function I can express the octal value of an integer with %o
and its hexadecimal value with %x
.
How can I represent a floating-point value as octal or hexadecimal, though?
When trying to use the same specifiers, Xcode 13.x predictably throws a warning telling me I am trying to use an integer specifier with a floating-point value.
How can I work around this?
Thank you