From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- .../source/text/sbasic/shared/03120105.xhp | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 helpcontent2/source/text/sbasic/shared/03120105.xhp (limited to 'helpcontent2/source/text/sbasic/shared/03120105.xhp') diff --git a/helpcontent2/source/text/sbasic/shared/03120105.xhp b/helpcontent2/source/text/sbasic/shared/03120105.xhp new file mode 100644 index 000000000..e3f925c69 --- /dev/null +++ b/helpcontent2/source/text/sbasic/shared/03120105.xhp @@ -0,0 +1,75 @@ + + + + + + + +CByte Function +/text/sbasic/shared/03120105.xhp + + +Sun Microsystems, Inc. + + + +
+CByte function + +

CByte Function

+Converts a string or a numeric expression to the Byte type. +
+ + +Cbyte( expression As Variant) As Byte + + +Byte + + +Expression: Any string or a numeric expression that can be evaluated to a number. Decimal values are rounded to the nearest tenth. Valid values range from 0 to 256. + + + + + + + Sub CByte_example + Print CByte( expression := "17"/2 + 7.44), CByte(EMPTY), CByte(PI) + ' Above expressions are computed as 16, 0 and 3 + End Sub + + +
+ + + +
+ + + +
-- cgit v1.2.3