# No function "isFloat" in the class Var

**URL:** <https://forum.juce.com/t/no-function-isfloat-in-the-class-var/13775>\
**Category:** General JUCE discussion\
**Created:** [October 27, 2014, 4:54pm UTC](https://forum.juce.com/t/no-function-isfloat-in-the-class-var/13775 "2014-10-27T16:54:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![IvanC](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ivanc/32/685_2.png) [@IvanC](https://forum.juce.com/u/IvanC)\
**Post date:** [October 27, 2014, 4:54pm UTC](https://forum.juce.com/t/no-function-isfloat-in-the-class-var/13775/1 "2014-10-27T16:54:08Z")

</div>

Hi Jules !

Would it be possible to add the function "isFloat" to the var class, since there is such a function for every other possible type ?

Thanks in advance !

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [October 27, 2014, 5:27pm UTC](https://forum.juce.com/t/no-function-isfloat-in-the-class-var/13775/2 "2014-10-27T17:27:22Z")

</div>

It already has&nbsp;isDouble()&nbsp;

(Although you can cast the var&nbsp;to float, it only stores the data internally as a double)

---

<div class="post-metadata">

**Author:** ![IvanC](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ivanc/32/685_2.png) [@IvanC](https://forum.juce.com/u/IvanC)\
**Post date:** [October 27, 2014, 7:10pm UTC](https://forum.juce.com/t/no-function-isfloat-in-the-class-var/13775/3 "2014-10-27T19:10:38Z")

</div>

OK, I didn't see that the data is always stored internally as a double, makes sense in this case, thanks ;)
