# exp() for very small numbers.

**URL:** <https://forum.kx.com/t/exp-for-very-small-numbers/10898>\
**Category:** Community Support\
**Tags:** kdb-and-q\
**Created:** [March 16, 2016, 2:12pm UTC](https://forum.kx.com/t/exp-for-very-small-numbers/10898 "2016-03-16T14:12:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krishna1](https://avatars.discourse-cdn.com/v4/letter/k/71e660/32.png) [@Krishna1](https://forum.kx.com/u/Krishna1)\
**Post date:** [March 16, 2016, 2:12pm UTC](https://forum.kx.com/t/exp-for-very-small-numbers/10898/1 "2016-03-16T14:12:00Z")

</div>

Hi,&nbsp;  
When I use exp() on a number less than 1e-6, I get a 1. Is there any way to avoid this?&nbsp;

Thanks,&nbsp;

Kumar

---

<div class="post-metadata">

**Author:** ![kuentang](https://avatars.discourse-cdn.com/v4/letter/k/bc8723/32.png) [@kuentang](https://forum.kx.com/u/kuentang)\
**Post date:** [March 16, 2016, 2:18pm UTC](https://forum.kx.com/t/exp-for-very-small-numbers/10898/2 "2016-03-16T14:18:00Z")

</div>

They are not the same:

0.000001 \< abs 1f - exp 1e-6

1b

Check display precision

\P 6

Kim

Sent from my iPhone
