Skip to content

Conversation

@superqtqt
Copy link

add func Atoi to convert string base 10,
example : "0890" -> 890

##147

@CLAassistant
Copy link

CLAassistant commented Aug 15, 2022

CLA assistant check
All committers have signed the CLA.

@superqtqt superqtqt closed this Nov 10, 2022
@superqtqt superqtqt reopened this Nov 10, 2022
@yveshield
Copy link
Contributor

This is a really bad idea. Since the beginning of the C language, there has been a convention of starting with "0" for octal numbers and "0x" for hexadecimal numbers. Why should we change this convention? If you want to remove the leading 0, do it before calling cast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants