# Cannot convert 'float' to 'const char' for argument

**URL:** <https://forum.arduino.cc/t/cannot-convert-float-to-const-char-for-argument/654676>\
**Category:** Programming\
**Created:** [May 12, 2020, 11:55pm UTC](https://forum.arduino.cc/t/cannot-convert-float-to-const-char-for-argument/654676 "2020-05-12T23:55:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eki1729](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/eki1729/32/519920_2.png) [@eki1729](https://forum.arduino.cc/u/eki1729)\
**Post date:** [May 12, 2020, 11:55pm UTC](https://forum.arduino.cc/t/cannot-convert-float-to-const-char-for-argument/654676/1 "2020-05-12T23:55:46Z")

</div>

I'm so confused how to convert float to const char, i'm a newbie on arduino please help somebody who knows how to solve it

[turbid.txt](https://forum.arduino.cc/uploads/short-url/nJy4bxM7CobFZKtVy5wAtAsprg1.txt) (837 Bytes)

---

<div class="post-metadata">

**Author:** ![groundFungus](https://avatars.discourse-cdn.com/v4/letter/g/73ab20/32.png) [@groundFungus](https://forum.arduino.cc/u/groundFungus)\
**Post date:** [May 13, 2020, 12:41am UTC](https://forum.arduino.cc/t/cannot-convert-float-to-const-char-for-argument/654676/2 "2020-05-13T00:41:19Z")

</div>

Post the whole program. Read the [how to use this forum-please read sticky](https://forum.arduino.cc/index.php/topic,148850.0.html) to see how to properly post code and some advice on how to ask an effective question. Remove useless white space and format the code with the IDE autoformat tool (crtl-t or Tools, Auto Format) before posting code.

Please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 12:31am UTC](https://forum.arduino.cc/t/cannot-convert-float-to-const-char-for-argument/654676/3 "2021-05-06T00:31:28Z")

</div>

Closed on May 6, 2021, 12:31am UTC


