# Variable Convertion Problem

**URL:** https://www.finalbuilder.com/forums/t/variable-convertion-problem/3006
**Category:** Bugs
**Created:** [July 29, 2008, 5:17am UTC](https://www.finalbuilder.com/forums/t/variable-convertion-problem/3006 "2008-07-29T05:17:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![marcl508](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@marcl508](https://www.finalbuilder.com/forums/u/marcl508)
#### Post date: [July 29, 2008, 5:17am UTC](https://www.finalbuilder.com/forums/t/variable-convertion-problem/3006/1 "2008-07-29T05:17:44Z")

</div>

I've got a variable with the value of 2.0.I expect to see a string with the contents "2.0" but instead it gets converts to just 2 (no .0).

Looks like it is converting it from a string to an int. How can I prevent this?

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [July 30, 2008, 1:17am UTC](https://www.finalbuilder.com/forums/t/variable-convertion-problem/3006/2 "2008-07-30T01:17:27Z")

</div>

Hi Marc   
  
 In the Set Variable action you can force the variable to a specific type, try setting the variable to itself and specifying String as the type.
