<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=Gambas%2Ffunctions%2FFormat</id>
	<title>Gambas/functions/Format - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=Gambas%2Ffunctions%2FFormat"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=Gambas/functions/Format&amp;action=history"/>
	<updated>2026-06-25T15:10:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://htyp.org/mw/index.php?title=Gambas/functions/Format&amp;diff=20932&amp;oldid=prev</id>
		<title>Woozle: relevant internal link</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=Gambas/functions/Format&amp;diff=20932&amp;oldid=prev"/>
		<updated>2015-05-14T11:42:30Z</updated>

		<summary type="html">&lt;p&gt;relevant internal link&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:42, 14 May 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;#039;&amp;#039;String&amp;#039;&amp;#039; = {{l/same|Format}} ( &amp;#039;&amp;#039;Expression&amp;#039;&amp;#039; [ , &amp;#039;&amp;#039;Format&amp;#039;&amp;#039; ] )&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;#039;&amp;#039;String&amp;#039;&amp;#039; = {{l/same|Format}} ( &amp;#039;&amp;#039;Expression&amp;#039;&amp;#039; [ , &amp;#039;&amp;#039;Format&amp;#039;&amp;#039; ] )&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;See also&amp;#039;&amp;#039;&amp;#039;:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;See also&amp;#039;&amp;#039;&amp;#039;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** &#039;&#039;String&#039;&#039; = {{l/same|CStr}}(&#039;&#039;expression&#039;&#039;) - converts &#039;&#039;expression&#039;&#039; to a &#039;&#039;string&#039;&#039; in the default format&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** &#039;&#039;String&#039;&#039; = {{l/same|CStr}}(&#039;&#039;expression&#039;&#039;) - &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Gambas/syntax/variables/type conversion|&lt;/ins&gt;converts&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/ins&gt;&#039;&#039;expression&#039;&#039; to a &#039;&#039;string&#039;&#039; in the default format&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Action==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Action==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Converts an &amp;#039;&amp;#039;expression&amp;#039;&amp;#039; to a &amp;#039;&amp;#039;string&amp;#039;&amp;#039; based on the given &amp;#039;&amp;#039;format&amp;#039;&amp;#039;. The format may be either user-defined or one of several pre-defined formats. If &amp;#039;&amp;#039;format&amp;#039;&amp;#039; is not specified, &amp;#039;&amp;#039;&amp;#039;gb.Standard&amp;#039;&amp;#039;&amp;#039; is used (see [[#general]]).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Converts an &amp;#039;&amp;#039;expression&amp;#039;&amp;#039; to a &amp;#039;&amp;#039;string&amp;#039;&amp;#039; based on the given &amp;#039;&amp;#039;format&amp;#039;&amp;#039;. The format may be either user-defined or one of several pre-defined formats. If &amp;#039;&amp;#039;format&amp;#039;&amp;#039; is not specified, &amp;#039;&amp;#039;&amp;#039;gb.Standard&amp;#039;&amp;#039;&amp;#039; is used (see [[#general]]).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=Gambas/functions/Format&amp;diff=19536&amp;oldid=prev</id>
		<title>Woozle: Woozle moved page Gambas/reference/Format to Gambas/functions/Format: one more time...</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=Gambas/functions/Format&amp;diff=19536&amp;oldid=prev"/>
		<updated>2013-04-24T20:28:15Z</updated>

		<summary type="html">&lt;p&gt;Woozle moved page &lt;a href=&quot;/Gambas/reference/Format&quot; class=&quot;mw-redirect&quot; title=&quot;Gambas/reference/Format&quot;&gt;Gambas/reference/Format&lt;/a&gt; to &lt;a href=&quot;/Gambas/functions/Format&quot; title=&quot;Gambas/functions/Format&quot;&gt;Gambas/functions/Format&lt;/a&gt;: one more time...&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:28, 24 April 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=Gambas/functions/Format&amp;diff=19526&amp;oldid=prev</id>
		<title>Woozle: post-move reformatting</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=Gambas/functions/Format&amp;diff=19526&amp;oldid=prev"/>
		<updated>2013-04-24T20:05:26Z</updated>

		<summary type="html">&lt;p&gt;post-move reformatting&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:05, 24 April 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Gambas article|Format}}&lt;/del&gt;{{boxright|__TOC__}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{boxright|__TOC__}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Usage==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Usage==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &#039;&#039;String&#039;&#039; = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Format (Gambas)&lt;/del&gt;|Format&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]]&lt;/del&gt;$ ( &#039;&#039;Expression&#039;&#039; [ , &#039;&#039;Format&#039;&#039; ] )&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &#039;&#039;String&#039;&#039; = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{l/same&lt;/ins&gt;|Format&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}}&lt;/ins&gt;$ ( &#039;&#039;Expression&#039;&#039; [ , &#039;&#039;Format&#039;&#039; ] )&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &#039;&#039;String&#039;&#039; = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Format (Gambas)&lt;/del&gt;|Format&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/del&gt;( &#039;&#039;Expression&#039;&#039; [ , &#039;&#039;Format&#039;&#039; ] )&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &#039;&#039;String&#039;&#039; = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{l/same&lt;/ins&gt;|Format&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}} &lt;/ins&gt;( &#039;&#039;Expression&#039;&#039; [ , &#039;&#039;Format&#039;&#039; ] )&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;See also&amp;#039;&amp;#039;&amp;#039;:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;See also&amp;#039;&amp;#039;&amp;#039;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** &#039;&#039;String&#039;&#039; = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[CStr (Gambas)&lt;/del&gt;|CStr&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]]&lt;/del&gt;(&#039;&#039;expression&#039;&#039;) - converts &#039;&#039;expression&#039;&#039; to a &#039;&#039;string&#039;&#039; in the default format&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** &#039;&#039;String&#039;&#039; = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{l/same&lt;/ins&gt;|CStr&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}}&lt;/ins&gt;(&#039;&#039;expression&#039;&#039;) - converts &#039;&#039;expression&#039;&#039; to a &#039;&#039;string&#039;&#039; in the default format&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Action==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Action==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Converts an &amp;#039;&amp;#039;expression&amp;#039;&amp;#039; to a &amp;#039;&amp;#039;string&amp;#039;&amp;#039; based on the given &amp;#039;&amp;#039;format&amp;#039;&amp;#039;. The format may be either user-defined or one of several pre-defined formats. If &amp;#039;&amp;#039;format&amp;#039;&amp;#039; is not specified, &amp;#039;&amp;#039;&amp;#039;gb.Standard&amp;#039;&amp;#039;&amp;#039; is used (see [[#general]]).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Converts an &amp;#039;&amp;#039;expression&amp;#039;&amp;#039; to a &amp;#039;&amp;#039;string&amp;#039;&amp;#039; based on the given &amp;#039;&amp;#039;format&amp;#039;&amp;#039;. The format may be either user-defined or one of several pre-defined formats. If &amp;#039;&amp;#039;format&amp;#039;&amp;#039; is not specified, &amp;#039;&amp;#039;&amp;#039;gb.Standard&amp;#039;&amp;#039;&amp;#039; is used (see [[#general]]).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=Gambas/functions/Format&amp;diff=19524&amp;oldid=prev</id>
		<title>Woozle: Woozle moved page Format (Gambas) to Gambas/reference/Format: reorganizing</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=Gambas/functions/Format&amp;diff=19524&amp;oldid=prev"/>
		<updated>2013-04-24T20:03:19Z</updated>

		<summary type="html">&lt;p&gt;Woozle moved page &lt;a href=&quot;/Format_(Gambas)&quot; class=&quot;mw-redirect&quot; title=&quot;Format (Gambas)&quot;&gt;Format (Gambas)&lt;/a&gt; to &lt;a href=&quot;/Gambas/reference/Format&quot; class=&quot;mw-redirect&quot; title=&quot;Gambas/reference/Format&quot;&gt;Gambas/reference/Format&lt;/a&gt;: reorganizing&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:03, 24 April 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=Gambas/functions/Format&amp;diff=2914&amp;oldid=prev</id>
		<title>Woozle: moved copying note to the end; some additional cleanup</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=Gambas/functions/Format&amp;diff=2914&amp;oldid=prev"/>
		<updated>2006-01-08T20:51:52Z</updated>

		<summary type="html">&lt;p&gt;moved copying note to the end; some additional cleanup&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:51, 8 January 2006&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Gambas article|Format}}{{boxright|__TOC__}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Gambas article|Format}}{{boxright|__TOC__}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Note==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* Much of this text has been copied from [http://www.gambasdoc.org/help/lang/format here], which is presumed to be available under a GNU-compatible license.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Usage==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Usage==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;#039;&amp;#039;String&amp;#039;&amp;#039; = [[Format (Gambas)|Format]]$ ( &amp;#039;&amp;#039;Expression&amp;#039;&amp;#039; [ , &amp;#039;&amp;#039;Format&amp;#039;&amp;#039; ] )&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;#039;&amp;#039;String&amp;#039;&amp;#039; = [[Format (Gambas)|Format]]$ ( &amp;#039;&amp;#039;Expression&amp;#039;&amp;#039; [ , &amp;#039;&amp;#039;Format&amp;#039;&amp;#039; ] )&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;#039;&amp;#039;String&amp;#039;&amp;#039; = [[Format (Gambas)|Format]] ( &amp;#039;&amp;#039;Expression&amp;#039;&amp;#039; [ , &amp;#039;&amp;#039;Format&amp;#039;&amp;#039; ] )&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;#039;&amp;#039;String&amp;#039;&amp;#039; = [[Format (Gambas)|Format]] ( &amp;#039;&amp;#039;Expression&amp;#039;&amp;#039; [ , &amp;#039;&amp;#039;Format&amp;#039;&amp;#039; ] )&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==&lt;/del&gt;See &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Also==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &#039;&#039;&#039;&lt;/ins&gt;See &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;also&#039;&#039;&#039;:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[CStr (Gambas)|CStr]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &#039;&#039;String&#039;&#039; = &lt;/ins&gt;[[CStr (Gambas)|CStr]]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(&#039;&#039;expression&#039;&#039;) - converts &#039;&#039;expression&#039;&#039; to a &#039;&#039;string&#039;&#039; in the default format&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Action==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Action==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Converts an &amp;#039;&amp;#039;expression&amp;#039;&amp;#039; to a &amp;#039;&amp;#039;string&amp;#039;&amp;#039; based on the given &amp;#039;&amp;#039;format&amp;#039;&amp;#039;. The format may be either user-defined or one of several pre-defined formats. If &amp;#039;&amp;#039;format&amp;#039;&amp;#039; is not specified, &amp;#039;&amp;#039;&amp;#039;gb.Standard&amp;#039;&amp;#039;&amp;#039; is used (see [[#general]]).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Converts an &amp;#039;&amp;#039;expression&amp;#039;&amp;#039; to a &amp;#039;&amp;#039;string&amp;#039;&amp;#039; based on the given &amp;#039;&amp;#039;format&amp;#039;&amp;#039;. The format may be either user-defined or one of several pre-defined formats. If &amp;#039;&amp;#039;format&amp;#039;&amp;#039; is not specified, &amp;#039;&amp;#039;&amp;#039;gb.Standard&amp;#039;&amp;#039;&amp;#039; is used (see [[#general]]).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l113&quot;&gt;Line 113:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 111:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{|&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&#039;&#039;&#039;gb.GeneralNumber&#039;&#039;&#039;||&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Write a number with &lt;/del&gt;twelve decimal digits&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. Use &lt;/del&gt;scientific format if &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;its &lt;/del&gt;absolute value is lower than 10{{exp|-4}} or greater than 10{{exp|7}}.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&#039;&#039;&#039;gb.GeneralNumber&#039;&#039;&#039;|| &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Use &lt;/ins&gt;twelve decimal digits&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, or &lt;/ins&gt;scientific format if &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the &lt;/ins&gt;absolute value is lower than 10{{exp|-4}} or greater than 10{{exp|7}}.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&#039;&#039;&#039;gb.Fixed&#039;&#039;&#039;||Equivalent to &quot;0.00&quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&#039;&#039;&#039;gb.Fixed&#039;&#039;&#039;|| Equivalent to &quot;0.00&quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&#039;&#039;&#039;gb.Percent&#039;&#039;&#039;||Equivalent to &quot;###%&quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&#039;&#039;&#039;gb.Percent&#039;&#039;&#039;|| Equivalent to &quot;###%&quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&#039;&#039;&#039;gb.Scientific&#039;&#039;&#039;||&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Write a number with its &lt;/del&gt;exponent and eighteen decimal digits.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&#039;&#039;&#039;gb.Scientific&#039;&#039;&#039;|| &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Use an &lt;/ins&gt;exponent and eighteen decimal digits.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l151&quot;&gt;Line 151:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 149:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;#039;&amp;#039;&amp;#039;gb.Standard&amp;#039;&amp;#039;&amp;#039;|Use &amp;#039;&amp;#039;&amp;#039;gb.GeneralNumber&amp;#039;&amp;#039;&amp;#039; for formatting numbers and &amp;#039;&amp;#039;&amp;#039;gb.GeneralDate&amp;#039;&amp;#039;&amp;#039; for formatting dates and times.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;#039;&amp;#039;&amp;#039;gb.Standard&amp;#039;&amp;#039;&amp;#039;|Use &amp;#039;&amp;#039;&amp;#039;gb.GeneralNumber&amp;#039;&amp;#039;&amp;#039; for formatting numbers and &amp;#039;&amp;#039;&amp;#039;gb.GeneralDate&amp;#039;&amp;#039;&amp;#039; for formatting dates and times.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Source==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* Much of this text has been copied from [http://www.gambasdoc.org/help/lang/format here], which is presumed to be available under a GNU-compatible license.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=Gambas/functions/Format&amp;diff=2913&amp;oldid=prev</id>
		<title>Woozle at 20:47, 8 January 2006</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=Gambas/functions/Format&amp;diff=2913&amp;oldid=prev"/>
		<updated>2006-01-08T20:47:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Gambas article|Format}}{{boxright|__TOC__}}&lt;br /&gt;
==Note==&lt;br /&gt;
* Much of this text has been copied from [http://www.gambasdoc.org/help/lang/format here], which is presumed to be available under a GNU-compatible license.&lt;br /&gt;
==Usage==&lt;br /&gt;
 &amp;#039;&amp;#039;String&amp;#039;&amp;#039; = [[Format (Gambas)|Format]]$ ( &amp;#039;&amp;#039;Expression&amp;#039;&amp;#039; [ , &amp;#039;&amp;#039;Format&amp;#039;&amp;#039; ] )&lt;br /&gt;
 &amp;#039;&amp;#039;String&amp;#039;&amp;#039; = [[Format (Gambas)|Format]] ( &amp;#039;&amp;#039;Expression&amp;#039;&amp;#039; [ , &amp;#039;&amp;#039;Format&amp;#039;&amp;#039; ] )&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[CStr (Gambas)|CStr]]&lt;br /&gt;
==Action==&lt;br /&gt;
Converts an &amp;#039;&amp;#039;expression&amp;#039;&amp;#039; to a &amp;#039;&amp;#039;string&amp;#039;&amp;#039; based on the given &amp;#039;&amp;#039;format&amp;#039;&amp;#039;. The format may be either user-defined or one of several pre-defined formats. If &amp;#039;&amp;#039;format&amp;#039;&amp;#039; is not specified, &amp;#039;&amp;#039;&amp;#039;gb.Standard&amp;#039;&amp;#039;&amp;#039; is used (see [[#general]]).&lt;br /&gt;
* Localization settings may affect the output of this function.&lt;br /&gt;
==User-Defined Formats==&lt;br /&gt;
===numeric===&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;+&amp;#039;&amp;#039;&amp;#039; || Prints the sign of the number.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;-&amp;#039;&amp;#039;&amp;#039; || Prints the sign of the number only if it is negative.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;#&amp;#039;&amp;#039;&amp;#039; || Prints a digit only if necessary.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;0&amp;#039;&amp;#039;&amp;#039; || Always prints a digit, padding with a zero if necessary.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;.&amp;#039;&amp;#039;&amp;#039; || Prints the decimal separator.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;,&amp;#039;&amp;#039;&amp;#039; || Prints the thousand separators.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;%&amp;#039;&amp;#039;&amp;#039; || Multiplies the number by 100 and prints a per-cent sign.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;E&amp;#039;&amp;#039;&amp;#039; || Introduces the exponential part of a Float number. The sign of the exponent is always printed.&lt;br /&gt;
|}&lt;br /&gt;
====Examples====&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
|PRINT Format$(Pi, &amp;quot;-#.###&amp;quot;)||3.142&lt;br /&gt;
|-&lt;br /&gt;
|PRINT Format$(Pi, &amp;quot;+0#.###0&amp;quot;)||+03.1416&lt;br /&gt;
|-&lt;br /&gt;
|PRINT Format$(Pi / 10, &amp;quot;###.# %&amp;quot;)||31.4 %&lt;br /&gt;
|-&lt;br /&gt;
|PRINT Format$(-11 ^ 11, &amp;quot;#.##E##&amp;quot;)||-2.85E+11&lt;br /&gt;
|}&lt;br /&gt;
===currency===&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;$&amp;#039;&amp;#039;&amp;#039; || Prints the national currency symbol.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;$$&amp;#039;&amp;#039;&amp;#039; || When the $ is doubled, the international currency symbol is printed instead.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;f&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;)&amp;#039;&amp;#039;&amp;#039; || Designates the representation of negative currencies, where &amp;#039;&amp;#039;f&amp;#039;&amp;#039; is the format specifier&lt;br /&gt;
|}&lt;br /&gt;
====Examples====&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| PRINT Format$(1972.06, &amp;quot;$#.###&amp;quot;) || $1972.06&lt;br /&gt;
|-&lt;br /&gt;
| PRINT Format$(-1972.06, &amp;quot;$,#.###&amp;quot;) || -$1,972.06&lt;br /&gt;
|-&lt;br /&gt;
| PRINT Format$(-1972.06, &amp;quot;($,#.###)&amp;quot;) || ($1,972.06)&lt;br /&gt;
|}&lt;br /&gt;
===dates===&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;yy&amp;#039;&amp;#039;&amp;#039; 	|| Prints the year on two digits.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;yyyy&amp;#039;&amp;#039;&amp;#039; 	|| Prints the year on four digits.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;m&amp;#039;&amp;#039;&amp;#039; 	|| Prints the month.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;mm&amp;#039;&amp;#039;&amp;#039; 	|| Prints the month on two digits.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;mmm&amp;#039;&amp;#039;&amp;#039; 	|| Prints the month in an abbreviatted string form.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;mmmm&amp;#039;&amp;#039;&amp;#039; 	|| Prints the month in its full string form.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;d&amp;#039;&amp;#039;&amp;#039; 	|| Prints the day.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;dd&amp;#039;&amp;#039;&amp;#039; 	|| Prints the day on two digits.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;ddd&amp;#039;&amp;#039;&amp;#039; 	|| Prints the week day in an abbreviated form.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;dddd&amp;#039;&amp;#039;&amp;#039; 	|| Prints the week day in its full form.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;/&amp;#039;&amp;#039;&amp;#039; 	|| Prints the date separator.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;h&amp;#039;&amp;#039;&amp;#039; 	|| Prints the hour.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;hh&amp;#039;&amp;#039;&amp;#039; 	|| Prints the hour on two digits.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;#039; 	|| Prints the minutes.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;nn&amp;#039;&amp;#039;&amp;#039; 	|| Prints the minutes on two digits.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;s&amp;#039;&amp;#039;&amp;#039; 	|| Prints the seconds.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;ss&amp;#039;&amp;#039;&amp;#039; 	|| Prints the seconds on two digits.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;:&amp;#039;&amp;#039;&amp;#039; 	|| Prints the time separator.&lt;br /&gt;
|}&lt;br /&gt;
====Examples====&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| PRINT Format$(Now, &amp;quot;mm/dd/yyyy hh:nn:ss&amp;quot;) || 04/15/2002 09:05:36&lt;br /&gt;
|-&lt;br /&gt;
| PRINT Format$(Now, &amp;quot;m/d/yy h:n:s&amp;quot;) || 4/15/02 9:5:36&lt;br /&gt;
|-&lt;br /&gt;
| PRINT Format$(Now, &amp;quot;ddd dd mmm yyyy&amp;quot;) || Mon Apr 15 2002&lt;br /&gt;
|-&lt;br /&gt;
| PRINT Format$(Now, &amp;quot;dddd dd mmmm yyyy&amp;quot;) || Monday April 15 2002&lt;br /&gt;
|}&lt;br /&gt;
==Pre-Defined Formats==&lt;br /&gt;
===Numeric===&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;gb.GeneralNumber&amp;#039;&amp;#039;&amp;#039;||Write a number with twelve decimal digits. Use scientific format if its absolute value is lower than 10{{exp|-4}} or greater than 10{{exp|7}}.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;gb.Fixed&amp;#039;&amp;#039;&amp;#039;||Equivalent to &amp;quot;0.00&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;gb.Percent&amp;#039;&amp;#039;&amp;#039;||Equivalent to &amp;quot;###%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;gb.Scientific&amp;#039;&amp;#039;&amp;#039;||Write a number with its exponent and eighteen decimal digits.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===date and time===&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;gb.GeneralDate&amp;#039;&amp;#039;&amp;#039;||Write a date only if the date and time value has a date part, and write a time only if it has a date part.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;gb.LongDate&amp;#039;&amp;#039;&amp;#039;||Long date format.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;gb.MediumDate&amp;#039;&amp;#039;&amp;#039;||Medium date format.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;gb.ShortDate&amp;#039;&amp;#039;&amp;#039;||Short date format.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;gb.LongTime&amp;#039;&amp;#039;&amp;#039;||Long time format.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;gb.MediumTime&amp;#039;&amp;#039;&amp;#039;||Medium time format.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;gb.ShortTime&amp;#039;&amp;#039;&amp;#039;||Short time format.&lt;br /&gt;
|}&lt;br /&gt;
===currency===&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;gb.Currency&amp;#039;&amp;#039;&amp;#039;||Format a currency by using the national currency symbol.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;gb.International&amp;#039;&amp;#039;&amp;#039;||Format a currency by using the international currency symbol.&lt;br /&gt;
|}&lt;br /&gt;
===general===&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;gb.Standard&amp;#039;&amp;#039;&amp;#039;|Use &amp;#039;&amp;#039;&amp;#039;gb.GeneralNumber&amp;#039;&amp;#039;&amp;#039; for formatting numbers and &amp;#039;&amp;#039;&amp;#039;gb.GeneralDate&amp;#039;&amp;#039;&amp;#039; for formatting dates and times.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
</feed>