gl gl gl it gl ca gl gl gl gl gl en gl en gl gl gl ca pt gl en en en gl
Devolve o valor absoluto dunha expresión numérica.
Number: Any numeric expression that you want to return the absolute value for. Positive numbers, including 0, are returned unchanged, whereas negative numbers are converted to positive numbers.
O seguinte exemplo usa a función Abs para calcular a diferenza entre dous valores. Non importa que valor introduce primeiro.
5 Chamada de procedemento incorrecta
Sub ExampleDifference Dim siW1 As Single Dim siW2 As Single siW1 = Int(InputBox("Introduza a primeira cantidade","Entrada de valor")) siW2 = Int(InputBox("Introduza a segunda cantidade","Entrada de valor")) Print "A diferenza é "; Abs(siW1 - siW2) End Sub
Precisamos da súa axuda!
Impressum (Legal Info) | Privacy Policy | Statutes (non-binding English translation) - Satzung (binding German version) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Mozilla Public License v2.0. “LibreOffice” and “The Document Foundation” are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy. LibreOffice was based on OpenOffice.org.
Help content debug info:
This page is: /text/sbasic/shared/03080601.xhp