Files
help/source/text/sbasic/shared/03100900.xhp
Dione Maddern 9e65856835 Make "Related Topics" links live for Basic help pages
Remove comment tags and self-referential link from the "Related Topics" section in text/sbasic/shared/03100050.xhp so that the additional links will display. Now that the correct tags have been added to other pages, they will display correctly.

Add a variable tag "CDec_h1" to text/sbasic/shared/03100060.xhp so that links from other help pages will work. Add a "Related Topics" section.

Remove comment tags from the "Related Topics" section in text/sbasic/shared/03100100.xhp so that additional links are visible.

Add a variable tag "CDate_h1" to text/sbasic/shared/03100300.xhp so that links from other help pages will work. Add a "Related Topics" section.

Add a variable tag "CDbl_h1" to text/sbasic/shared/03100400.xhp so that links from other help pages will work. Add a "Related Topics" section.

Add a variable tag "CInt_h1" to text/sbasic/shared/03100500.xhp so that links from other help pages will work. Add a "Related Topics" section.

Add a variable tag "CLng_h1" to text/sbasic/shared/03100600.xhp so that links from other help pages will work. Add a "Related Topics" section.

Add a variable tag "CSng_h1" to text/sbasic/shared/03100900.xhp so that links from other help pages will work. Add a "Related Topics" section.

Add a variable tag "CByte_h1" to text/sbasic/shared/03120105.xhp so that links from other help pages will work. Remove comment tags from the "Related Topics" section so that the additional links are visible.



Change-Id: I463c4100368b8ed7f033bf11d68695eac1ce8e33
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/163390
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-02-15 13:44:24 +01:00

84 lines
4.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
<meta>
<topic id="textsbasicshared03100900xml" indexer="include" status="PUBLISH">
<title id="tit" xml-lang="en-US">CSng Function</title>
<filename>/text/sbasic/shared/03100900.xhp</filename>
</topic>
</meta>
<body>
<section id="csng">
<bookmark xml-lang="en-US" branch="index" id="bm_id3153753">
<bookmark_value>CSng function</bookmark_value>
</bookmark>
<h1 id="hd_id3153753" xml-lang="en-US"><variable id="CSng_h1"><link href="text/sbasic/shared/03100900.xhp">CSng Function</link></variable></h1>
<paragraph id="par_id3149748" role="paragraph" xml-lang="en-US">Converts any string or numeric expression to data type Single.</paragraph>
</section>
<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
<bascode>
<paragraph id="par_id3148983" role="bascode" xml-lang="en-US">CSng (Expression As Variant) As Single</paragraph>
</bascode>
<embed href="text/sbasic/shared/00000003.xhp#functvalue"/>
<paragraph id="par_id3153750" localize="false" role="paragraph">Single</paragraph>
<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
<section id="ExpressionArgument">
<paragraph id="par_id3153897" role="paragraph" xml-lang="en-US"> <emph>Expression</emph>: Any string or numeric expression that you want to convert. To convert a string expression, the number must be entered as normal text using the default number format of your %PRODUCTNAME <link href="text/shared/optionen/01140000.xhp">locale settings</link>. For instance, the number must be entered using a dot "." as the decimal point and a comma "," as the thousands separator (for instance 123,456.78) for the English locale setting.</paragraph>
</section>
<embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
<embed href="text/sbasic/shared/00000003.xhp#err5"/>
<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
<section id="ExampleCountryConvert">
<paragraph role="paragraph" id="par_id761652451117906">Numeric expressions are displayed according to %PRODUCTNAME <link href="text/shared/optionen/01140000.xhp">locale settings</link>:</paragraph>
<bascode>
<paragraph id="par_idm1341609456" role="bascode" localize="false">Sub ExampleCountryConvert</paragraph>
<paragraph id="par_idm1341608224" role="bascode" xml-lang="en-US"> MsgBox CDbl(1234.5678) ' 1234.5678</paragraph>
<paragraph id="par_idm1341606976" role="bascode" localize="false"> MsgBox CInt(1234.5678) ' 1235</paragraph>
<paragraph id="par_idm1341605728" role="bascode" localize="false"> MsgBox CLng(1234+5678) ' 6912</paragraph>
<paragraph id="par_idm1341604480" role="bascode" xml-lang="en-US"> MsgBox CSng(1234.5678) ' 1234.567749023</paragraph>
<paragraph id="par_idm1341603223" role="bascode" localize="false"></paragraph>
<paragraph id="par_idm1341608242" role="bascode" xml-lang="en-US"> MsgBox CDbl(expression := 5678.1234) ' 5678.1234</paragraph>
<paragraph id="par_idm1341606967" role="bascode" localize="false"> MsgBox CInt(expression := 5678.1234) ' 5678</paragraph>
<paragraph id="par_idm1341605782" role="bascode" localize="false"> MsgBox CLng(expression := 5678+1234) ' 6912</paragraph>
<paragraph id="par_idm1341604408" role="bascode" xml-lang="en-US"> MsgBox CSng(expression := 5678.1234) ' 5678.123535156</paragraph>
<paragraph id="par_idm1314603223" role="bascode" localize="false">End Sub</paragraph>
</bascode>
</section>
<section id="relatedtopics">
<embed href="text/sbasic/shared/03100100.xhp#CBool_h1"/>
<embed href="text/sbasic/shared/03120105.xhp#CByte_h1"/>
<embed href="text/sbasic/shared/03100050.xhp#CCur_h1"/>
<embed href="text/sbasic/shared/03100300.xhp#CDate_h1"/>
<embed href="text/sbasic/shared/03100400.xhp#CDbl_h1"/>
<embed href="text/sbasic/shared/03100060.xhp#CDec_h1"/>
<embed href="text/sbasic/shared/03100500.xhp#CInt_h1"/>
<embed href="text/sbasic/shared/03100600.xhp#CLng_h1"/>
<embed href="text/sbasic/shared/03101000.xhp#CStr_h1"/>
</section>
</body>
</helpdocument>