# Jinja template cannot fetch '0.10' value

**URL:** <https://forum.ansible.com/t/jinja-template-cannot-fetch-0-10-value/38544>\
**Category:** Ansible Project\
**Created:** [October 24, 2023, 9:46am UTC](https://forum.ansible.com/t/jinja-template-cannot-fetch-0-10-value/38544 "2023-10-24T09:46:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dudu.c](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Post date:** [October 24, 2023, 9:46am UTC](https://forum.ansible.com/t/jinja-template-cannot-fetch-0-10-value/38544/1 "2023-10-24T09:46:43Z")

</div>

Hi,

I have input file that include the following parameter.

**internal\_network\_reverse** : 0.10

and a jinja template file that include the following line

zone “{{ **internal\_network\_reverse** | default (‘168.192’) }}.in-addr.arpa”

The **required output** I wish to get is zone “ **0.10**.in-addr.arpa”

**Instead** , I’m getting this zone “ **0.1**.in-addr.arpa” ; **Without the zero**

I have tried using string and float but still I’m not getting the required result.

zone “{{ internal\_network\_reverse | **string** | default (‘168.192’) }}.in-addr.arpa”

zone “{{ internal\_network\_reverse | **float** | default (‘168.192’) }}.in-addr.arpa”

Any suggestions??

\*Please note that I don’t want to add “ “ in my input file - this way it is working but I need to avoid the use of “ “

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [October 24, 2023, 10:24am UTC](https://forum.ansible.com/t/jinja-template-cannot-fetch-0-10-value/38544/2 "2023-10-24T10:24:32Z")

</div>

If your input is supposed to be yaml, then the 0.10 value will be interpreted as a float.  
If you want it to be a string, you have to quote it (although you don’t want to).

It cannot be two types at the same time
