aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/arduino/charcast.rst
blob: 91a0f8fb2ed3fbfa09a93f74cc317aa086672d19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.. highlight:: cpp

.. _arduino-charcast:

char() (cast)
=============

Description
-----------

Converts a value to the :ref:`char <arduino-char>` data type.

Syntax
------

``char(x)``


Parameters
----------

**x**: a value of any type


Returns
-------

The value, converted to a ``char``.  Note, however, that if the value
is outside the range of a ``char`` (-128 to 127), then the results
might be strange and unexpected.


See Also
--------

-  :ref:`char <arduino-char>`


.. include:: cc-attribution.txt