From c420e8c4c4df614c361f45cfe553489c332ac61a Mon Sep 17 00:00:00 2001 From: Edgar Bonet Date: Mon, 14 Oct 2024 14:26:04 +0200 Subject: [PATCH] sq.adoc: fix the description of the data types --- Language/Functions/Math/sq.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Language/Functions/Math/sq.adoc b/Language/Functions/Math/sq.adoc index ac403498..1e5b4dee 100644 --- a/Language/Functions/Math/sq.adoc +++ b/Language/Functions/Math/sq.adoc @@ -28,12 +28,12 @@ Calculates the square of a number: the number multiplied by itself. [float] === Parameters -`x`: the number. Allowed data types: any data type. +`x`: the number. Allowed data types: any numeric type. [float] === Returns -The square of the number. Data type: `double`. +The square of the number. Data type: `int` if the argument type is smaller than an `int` (e.g. `char`), otherwise the returned value has the same type as the argument. -- // OVERVIEW SECTION ENDS