Hello guys (sorry for my english) i have a urgent problem in godot, i wanto to convert a number (BASE 10, 8, 2) give in input to a number in BASE 10,16,8,2

DEC,OCT,BIN---->DEC, HEX,OCT,BIN

This discussion was caught in the moderation queue since you have not confirmed your account yet.

Upon creating your account you should have received an account verification email. The confirmation email may have been incorrectly flagged as spam, so please also check your spam filter. Without confirming your account, future posts may also be caught in the moderation queue. You can resend a confirmation email when you log into your account if you cannot find the first verification email.

(Note: You do not need to repost, the discussion has been moved out and is visible now)

If you need any help, please let us know! You can find ways to contact forum staff on the Contact page. Thanks! :smile:

To convert between hexadecimal and decimal:

var number_hex_string = "%x" % 255
print(number_hex_string) # ff (prefix it with "0x" manually if needed)
var number_dec_string = "%d" % 0xff
print(number_dec_string)  # 255
2 years later