# \#float-to-string

**URL:** https://forums.digi.com/tag/float-to-string/727.md

[Latest](https://forums.digi.com/latest.md) · [Categories](https://forums.digi.com/categories.md) · [Tags](https://forums.digi.com/tags.md)

---

## [How to truncate the buffer value from the function ftoa.](https://forums.digi.com/t/how-to-truncate-the-buffer-value-from-the-function-ftoa/11873)

<div class="topic-metadata">

**Author:** [@dcloud](https://forums.digi.com/u/dcloud)\
**Replies:** 2\
**Last updated:** [September 12, 2013, 2:59am UTC](https://forums.digi.com/t/how-to-truncate-the-buffer-value-from-the-function-ftoa/11873 "2013-09-12T02:59:31Z")

</div>

I am using the ftoa function to convert a floating point number to a character string to send out over the RS-232 link to a LCD display. The function returns an exponent of 10 to compansate for the string. However the st…
