summaryrefslogtreecommitdiff
path: root/helpcontent2/source/text/sbasic/shared/01020100.xhp
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2007-04-02 13:48:12 +0000
committerRüdiger Timm <rt@openoffice.org>2007-04-02 13:48:12 +0000
commit85a4fe1c1a55e19ff207e7201ea4efc6f12ed3ff (patch)
tree79866b7ca2113b678491b1ee7cf76bb4447ab2a6 /helpcontent2/source/text/sbasic/shared/01020100.xhp
parent62902fb9f9760016c333e8d7b51c328dc274fe86 (diff)
INTEGRATION: CWS hcshared08 (1.5.190); FILE MERGED
2007/01/31 14:17:14 ufi 1.5.190.1: some changes
Diffstat (limited to 'helpcontent2/source/text/sbasic/shared/01020100.xhp')
-rw-r--r--helpcontent2/source/text/sbasic/shared/01020100.xhp18
1 files 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 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--***********************************************************************
+<!--
+ ***********************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: 01020100.xhp,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: rt $ $Date: 2005-09-07 15:31:15 $
+ * last change: $Author: rt $ $Date: 2007-04-02 14:48:12 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -32,7 +33,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
- ************************************************************************-->
+ ************************************************************************
+ -->
<helpdocument version="1.0">
<meta>
@@ -42,7 +44,7 @@
</topic>
<history>
<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
-<lastedited date="2005-02-14T10:37:25">converted from old format - fpe</lastedited>
+<lastedited date="2007-01-29T12:32:30">converted from old format - fpe</lastedited>
</history>
</meta>
<body>
@@ -220,6 +222,12 @@
<paragraph role="paragraph" id="par_id3151193" xml-lang="en-US" l10n="U" oldref="46">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. "&amp;" is the type-declaration character.</paragraph>
<paragraph role="code" id="par_id3154708" xml-lang="en-US" l10n="U" oldref="48">Dim Variable&amp;</paragraph>
<paragraph role="code" id="par_id3156365" xml-lang="en-US" l10n="U" oldref="49">Dim Variable as Long</paragraph>
+<paragraph role="heading" id="hd_id7596972" xml-lang="en-US" level="3" l10n="NEW">Decimal Variables<comment>see i64349</comment></paragraph>
+<paragraph role="paragraph" id="par_id2649311" xml-lang="en-US" l10n="NEW">Decimal variables can take positive or negative numbers or zero. Accuracy is up to 29 digits.</paragraph>
+<paragraph role="code" id="par_id2414014" xml-lang="en-US" l10n="NEW">Dim Variable As Float</paragraph>
+<paragraph role="paragraph" id="par_id7617114" xml-lang="en-US" l10n="NEW">You can use plus (+) or minus (-) signs as prefixes for decimal numbers (with or without spaces).</paragraph>
+<paragraph role="paragraph" id="par_id1593676" xml-lang="en-US" l10n="NEW">If a decimal number is assigned to an integer variable, %PRODUCTNAME Basic rounds the figure up or down.<comment>this is the only information from "Programming Guide
+for BASIC" about decimal variables</comment></paragraph>
<paragraph role="heading" id="hd_id3147500" xml-lang="en-US" level="3" l10n="U" oldref="50">Single Variables</paragraph>
<paragraph role="paragraph" id="par_id3153070" xml-lang="en-US" l10n="U" oldref="51">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 "!".</paragraph>
<paragraph role="code" id="par_id3149875" xml-lang="en-US" l10n="U" oldref="52">Dim Variable!</paragraph>