Test char to int conversion.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2019-04-08 10:32:31 +02:00
parent c2b3cc1a2f
commit b320d35cf7
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
2 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@ class Program {
private void testNumbers() { private void testNumbers() {
printf("%%b = '%b'\n", $this->n); printf("%%b = '%b'\n", $this->n);
printf("%%c = '%c'\n", $this->c); printf("%%c = '%c'\n", $this->c);
printf("%%d = '%d'\n", $this->c);
printf("%%d = '%d'\n", $this->n); printf("%%d = '%d'\n", $this->n);
printf("%%e = '%e'\n", $this->n); printf("%%e = '%e'\n", $this->n);
printf("%%u = '%u'\n", $this->n); printf("%%u = '%u'\n", $this->n);

View File

@ -6,6 +6,7 @@
[many monke] [many monke]
%b = '10100111101010011010101101' %b = '10100111101010011010101101'
%c = 'A' %c = 'A'
%d = '65'
%d = '43951789' %d = '43951789'
%e = '4.395179e+07' %e = '4.395179e+07'
%u = '43951789' %u = '43951789'