# #### [ decimal->nextafter ]

Method

Returns the next representable double-precision floating-point value following x in the direction of y. Thus, if y is less than x, [decimal->nextafter] returns the largest representable floating-point number less than x. x is the decimal object and y is the required decimal parameter.

• Syntax
``Decimal Object->nextafter(Decimal Value)``
• Beginner

### To return the next representable double-precision floating-point number following a decimal in the direction of another decimal:

Use the [decimal->nextafter] method. The following examples illustrate the next numbers which can be represented when followed in two different directions, relative to the original decimal.

Code

``````1.0000005->nextafter(2.0)
'<br>'
1.0000005->nextafter(1.0)
``````

Result

```1.000001
1.000000```
##### Resources
• Articles Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
{"ft_lang_label":"__label__en","ft_lang_prob":0.76563185,"math_prob":0.84019005,"size":994,"snap":"2023-14-2023-23","text_gpt3_token_len":222,"char_repetition_ratio":0.13030303,"word_repetition_ratio":0.0,"special_character_ratio":0.22635815,"punctuation_ratio":0.09356725,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97798705,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-03-31T21:57:32Z\",\"WARC-Record-ID\":\"<urn:uuid:725c0d4d-64fd-4d66-8226-5c6b13731f3e>\",\"Content-Length\":\"48251\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:9e1353d8-4afb-4cf5-8fa6-7e8040bdcf35>\",\"WARC-Concurrent-To\":\"<urn:uuid:6aac06bf-cf28-4381-911c-377890cbd4de>\",\"WARC-IP-Address\":\"64.34.221.19\",\"WARC-Target-URI\":\"http://www.lassosoft.com/lassoDocs/languageReference/obj/decimal/nextafter\",\"WARC-Payload-Digest\":\"sha1:EQ5EXHNW5UNAJ7B74543RNSZVMI26Z2I\",\"WARC-Block-Digest\":\"sha1:VWE3TNG3WV7A6S2HYVQOM37ZEWT3YXVX\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-14/CC-MAIN-2023-14_segments_1679296949689.58_warc_CC-MAIN-20230331210803-20230401000803-00253.warc.gz\"}"}