From 61173c1b58efa79c0ba6b08348d2796a249d0186 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sat, 1 Sep 2012 09:51:27 -0500 Subject: move help structure one directory up Change-Id: Ie970e39fbb6795a92d9fdd13510409d7dcd071bc --- source/text/sbasic/shared/03120104.xhp | 65 ++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 source/text/sbasic/shared/03120104.xhp (limited to 'source/text/sbasic/shared/03120104.xhp') diff --git a/source/text/sbasic/shared/03120104.xhp b/source/text/sbasic/shared/03120104.xhp new file mode 100644 index 0000000000..4053a9a5d8 --- /dev/null +++ b/source/text/sbasic/shared/03120104.xhp @@ -0,0 +1,65 @@ + + + + + + + + +Val Function [Runtime] +/text/sbasic/shared/03120104.xhp + + +Sun Microsystems, Inc. +converted from old format - fpe + + + +
+Val function + +Val Function [Runtime] +Converts a string to a numeric expression. +
+Syntax: +Val (Text As String) +Return value: +Double +Parameters: + +Text: String that represents a number. +Using the Val function, you can convert a string that represents numbers into numeric expressions. This is the inverse of the Str function. If only part of the string contains numbers, only the first appropriate characters of the string are converted. If the string does not contain any numbers, the Val function returns the value 0. + + +Example: +Sub ExampleVal +msgbox Val("123.123") +msgbox Val("A123.123") +end Sub + +
-- cgit