# String question

**URL:** <https://forum.kirupa.com/t/string-question/47697>\
**Category:** Uncategorized\
**Created:** [April 6, 2004, 3:32pm UTC](https://forum.kirupa.com/t/string-question/47697 "2004-04-06T15:32:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![macneilslt](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@macneilslt](https://forum.kirupa.com/u/macneilslt)\
**Post date:** [April 6, 2004, 3:32pm UTC](https://forum.kirupa.com/t/string-question/47697/1 "2004-04-06T15:32:00Z")

</div>

I think this has to do with string anyways, or length…

Say i have a function that calculates a nubmer, it outputs a dollar value, so i  
lets say the output should be $1.40 , it would output $1.4, that looks a bit funny, so is there a way to check the length after the decimal, and if it’s only 1 char long, to add a 0?
