# Converting milliCPU to string using ParseFloat

**URL:** <https://community.replicated.com/t/converting-millicpu-to-string-using-parsefloat/940>\
**Category:** How do I?\
**Created:** [August 25, 2022, 9:32am UTC](https://community.replicated.com/t/converting-millicpu-to-string-using-parsefloat/940 "2022-08-25T09:32:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Fernando\_Cremer](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/fernando_cremer/32/436_2.png) [@Fernando\_Cremer](https://community.replicated.com/u/Fernando_Cremer)\
**Post date:** [August 25, 2022, 12:29pm UTC](https://community.replicated.com/t/converting-millicpu-to-string-using-parsefloat/940/2 "2022-08-25T12:29:36Z")

</div>

Hi - Are you simply trying to convert the `type` ? As in make a string value be treated like a float? Or do you need an actual conversion (take one number, like ‘25’ and then covert it to something like 0.25?

Here is an example where we used templating to test the CPU capacity [How Can I Use License Custom Fields Value in a Pre-Flight Check?](https://community.replicated.com/t/how-can-i-use-license-custom-fields-value-in-a-pre-flight-check/624) While this article uses License Field Values, it shows how to use templating which would be needed to use the `ParseFloat` function?

---

_[View the full topic](https://community.replicated.com/t/converting-millicpu-to-string-using-parsefloat/940)._
