-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"c"
format does not work as expected
#116
Comments
In C, python and PHP printf("%c", 97) give "a". In Line 8 in ff87892
The tests are only for a 1-char string input, so it looks like an oversight. |
The code is doing what is intended here, but it looks like we forgot to update the documentation accordingly. This was changed in e247671. |
I see. Is there a way to do achieve the same effect as python's |
Not currently, but you could use String.fromCharCode(97) in conjunction with type |
According to the docs:
In my code,
Just prints 97.
I was expecting something along the lines of python:
The text was updated successfully, but these errors were encountered: