From c01dededd949ea6bad467c5388417b986c4d95c8 Mon Sep 17 00:00:00 2001 From: Brave <60758749+braveltd@users.noreply.github.com> Date: Sun, 16 Jul 2023 23:48:40 +0300 Subject: [PATCH] Added divmod in builtins.md Added func built-in divmod function. --- docs/develop/func/builtins.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/develop/func/builtins.md b/docs/develop/func/builtins.md index d8180eeb50..5290fc2f75 100644 --- a/docs/develop/func/builtins.md +++ b/docs/develop/func/builtins.md @@ -16,6 +16,7 @@ A string can be dumped to the debug log by the `~strdump` function. ## Integer operations - `muldiv` is a multiple-then-divide operation. The intermediate result is stored in 513-bit integer, so it won't overflow if the actual result fits into a 257-bit integer. +- `divmod` is a operation that takes two numbers as parameters and gives the quotient and remainder of their division. ## Other primitives - `null?` checks whether the argument is `null`. By the value `null` of a TVM type, `Null` FunC represents absence of a value of some atomic type; see [null values](/develop/func/types#null-values).