From 85a4fe1c1a55e19ff207e7201ea4efc6f12ed3ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Timm?= Date: Mon, 2 Apr 2007 13:48:12 +0000 Subject: [PATCH] INTEGRATION: CWS hcshared08 (1.5.190); FILE MERGED 2007/01/31 14:17:14 ufi 1.5.190.1: some changes --- .../source/text/sbasic/shared/01020100.xhp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/helpcontent2/source/text/sbasic/shared/01020100.xhp b/helpcontent2/source/text/sbasic/shared/01020100.xhp index 90cc3693a1..29f2053913 100644 --- a/helpcontent2/source/text/sbasic/shared/01020100.xhp +++ b/helpcontent2/source/text/sbasic/shared/01020100.xhp @@ -1,13 +1,14 @@ - + ************************************************************************ + --> @@ -42,7 +44,7 @@ Sun Microsystems, Inc. -converted from old format - fpe +converted from old format - fpe @@ -220,6 +222,12 @@ Long integer variables range from -2147483648 to 2147483647. If you assign a floating-point value to a long integer variable, the decimal places are rounded to the next integer. Long integer variables are rapidly calculated in procedures and are suitable for counter variables in loops for large values. A long integer variable requires four bytes of memory. "&" is the type-declaration character. Dim Variable& Dim Variable as Long +Decimal Variablessee i64349 +Decimal variables can take positive or negative numbers or zero. Accuracy is up to 29 digits. +Dim Variable As Float +You can use plus (+) or minus (-) signs as prefixes for decimal numbers (with or without spaces). +If a decimal number is assigned to an integer variable, %PRODUCTNAME Basic rounds the figure up or down.this is the only information from "Programming Guide +for BASIC" about decimal variables Single Variables Single variables can take positive or negative values ranging from 3.402823 x 10E38 to 1.401298 x 10E-45. Single variables are floating-point variables, in which the decimal precision decreases as the non-decimal part of the number increases. Single variables are suitable for mathematical calculations of average precision. Calculations require more time than for Integer variables, but are faster than calculations with Double variables. A Single variable requires 4 bytes of memory. The type-declaration character is "!". Dim Variable!