# Number.Epsilon

Number.Epsilon is a Constant Value in the Power Query M language that represents the smallest positive number a floating-point number can hold. This constant is useful in performing precision-sensitive calculations where you need to evaluate whether a floating-point number is practically zero, or in dealing with very small number calculations that would otherwise get rounded down to zero.

## Examples

To retrieve the constant value representing the smallest positive number that can be represented in Power Query, you can directly call the Number.Epsilon function without using any parentheses. This simple and concise approach allows you to obtain the precise value of the constant:

``Number.Epsilon // Returns 4.94065645841247E-324``

To get a better understanding the Epsilon number is used, here are two examples.

Precision-Sensitive Calculations: Number.Epsilon is valuable when performing calculations that require high precision, especially when comparing floating-point numbers. You can use Number.Epsilon to determine if the difference between two numbers is within an acceptable tolerance level:

``````if Number.Abs( Number1 - Number2 ) < Number.Epsilon
then "Numbers are considered equal"
else "Numbers are not equal"``````

Approximating Zero: Number.Epsilon helps determine if a floating-point number is practically zero by comparing it with a tolerance level. For example, you can check if a number is close to zero within a certain threshold:

``````if Number.Abs( NumberX ) < Number.Epsilon
then "Number is practically zero"
else "Number is not zero"
``````

Division by Zero Handling: Number.Epsilon can be used to prevent division by very small numbers that might result in a potential error. You can add Number.Epsilon to the denominator to ensure a minimum divisor value:

``Numerator / ( Denominator + Number.Epsilon )``

## Related constants

Other related constants are:

Last update: August 17, 2023 | Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/powerquery-m/number-epsilon
{"ft_lang_label":"__label__en","ft_lang_prob":0.80625474,"math_prob":0.9789188,"size":1850,"snap":"2023-40-2023-50","text_gpt3_token_len":356,"char_repetition_ratio":0.16684724,"word_repetition_ratio":0.0074626864,"special_character_ratio":0.19081081,"punctuation_ratio":0.10725552,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9993025,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-01T03:32:03Z\",\"WARC-Record-ID\":\"<urn:uuid:07aedac6-8e7a-4502-b7b6-7159053833ff>\",\"Content-Length\":\"329440\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:22a28dc8-d0ed-4683-a728-52eb4d47fc71>\",\"WARC-Concurrent-To\":\"<urn:uuid:f9d935ca-eba2-4df3-be61-c90838fd213b>\",\"WARC-IP-Address\":\"104.18.120.61\",\"WARC-Target-URI\":\"https://powerquery.how/number-epsilon/\",\"WARC-Payload-Digest\":\"sha1:JITFQ6DMFQ5WAEQ2RGK2E4TF6DYJZEO4\",\"WARC-Block-Digest\":\"sha1:QHAKG4APBM37RDFE5CSX2QETHPUPKPGR\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100264.9_warc_CC-MAIN-20231201021234-20231201051234-00843.warc.gz\"}"}