✅ How do I convert a char to ascii and ascii back to char?
I tried this:
and the output is:
char is:basically .... nothing
18 Replies
Because you're trying to display a difference
So probably some invalid char
What you should do if you're hoping for an actual letter, is add
'a'
to itAngius
REPL Result: Success
Result: int
Compile: 200.096ms | Execution: 67.586ms | React with ❌ to remove this embed.
You get a char with ASCII number of 3
So the character for, literally,
END OF TEXT
: https://www.fileformat.info/info/unicode/char/0003/index.htmThat said, it's an int variable, sonit shouldn't be converting to char
True
Angius
REPL Result: Success
Console Output
Compile: 690.835ms | Execution: 37.820ms | React with ❌ to remove this embed.
¯\_(ツ)_/¯
Yuup. Running old compiled version perhaps?
yeah i know, sorry about that.
First, I had written
Convert.ToChar(c)
but later I changed it to just see int value
but copied the exact code
my badbruh
So... what's the actual code that doesn't work?
Or does everything work now and this thread can be closed?
They did convert tochar on 3, so eof
yeah. I thought wrongly...
close it please
Do it yourself, with $close
Use the /close command to mark a forum thread as answered
So everything works now? Cool
yeah
$close
Use the /close command to mark a forum thread as answered