# Div (Float function)

Integer division (Float class)

The Div intrinsic function returns the integer part of the result of dividing the method object by the method argument.

The numbers to be divided are first rounded to the nearest integer, including zero. Any remainder from the division is ignored.

## Syntax

%number = float:Div( divisor)

### Syntax terms

%number A variable to receive the integer part of the quotient. A Float value to be divided by the method argument, divisor. A non-zero numeric value. A value of 0, or a value that rounds down to 0, causes a request cancellation.

## Examples

1. The following statement sets `%z` to the integer quotient from the division of the number in `%x` (rounded) by the number in `%y` (rounded):

%z = %x:div(%y)

2. The following statement sets `%z` to `-95`:

%z = -191.4:div(2.3)
{"ft_lang_label":"__label__en","ft_lang_prob":0.7142766,"math_prob":0.9667361,"size":983,"snap":"2023-14-2023-23","text_gpt3_token_len":245,"char_repetition_ratio":0.12053116,"word_repetition_ratio":0.0375,"special_character_ratio":0.23906408,"punctuation_ratio":0.110526316,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9961393,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-06-07T12:08:53Z\",\"WARC-Record-ID\":\"<urn:uuid:0d2a6751-281f-4d1d-8d56-f3b175975814>\",\"Content-Length\":\"25820\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:709a1652-d01c-4606-8f3a-d6eaf95cac3e>\",\"WARC-Concurrent-To\":\"<urn:uuid:51cec547-2052-42b1-8f41-aea694cbb5e5>\",\"WARC-IP-Address\":\"137.134.250.39\",\"WARC-Target-URI\":\"https://m204wiki.rocketsoftware.com/index.php?title=Div_(Float_function)&oldid=3724\",\"WARC-Payload-Digest\":\"sha1:VDPBL7SOHNGOFGXQJDGCD6S2B5WYB5YR\",\"WARC-Block-Digest\":\"sha1:XUALWSJIALNHGALIE2RBTDFKB5K5ARUS\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224653764.55_warc_CC-MAIN-20230607111017-20230607141017-00431.warc.gz\"}"}