Difference between revisions of "Char()"

From Microduino Wiki
Jump to: navigation, search
(Created page with "Unsigned char<br> *'''Description'''<br> An unsigned character takes 1-byte memory, same with byte type. <br> Unsigned char can code the numbers from 0 to 255.<br> To keep...")
 
 
Line 1: Line 1:
Unsigned char<br>
+
char()
 
*'''Description'''<br>
 
*'''Description'''<br>
  
An unsigned character takes 1-byte memory, same with byte type. <br>
+
Convert the type of a value to char.<br>
 
+
*'''Syntax'''<br>
Unsigned char can code the numbers from 0 to 255.<br>
 
 
 
To keep the consistency of the compiling style of Arduino, byte type is preferred.<br>
 
*'''Example'''<br>
 
 
<pre style="color:green">
 
<pre style="color:green">
    unsigned char myChar = 240;
+
char(x)
 
</pre>
 
</pre>
 +
'''Parameter'''
 +
*x:any type of value
 +
'''Return'''
 +
* Char type
 
[[https://wiki.microduino.cc/index.php/Arduino_Syntax_Manual Return to Arduino Syntax Manual]]
 
[[https://wiki.microduino.cc/index.php/Arduino_Syntax_Manual Return to Arduino Syntax Manual]]

Latest revision as of 03:03, 22 August 2016

char()

  • Description

Convert the type of a value to char.

  • Syntax
char(x)

Parameter

  • x:any type of value

Return

  • Char type

[Return to Arduino Syntax Manual]