# Wijmo.Globalize

## Content

<div class="content__tsd">
						<div style="display:flex;justify-content:space-between;align-items:center">
							<h1>
								Globalize Class
							</h1>
						</div>
						<section class="tsd-comment">
							<div class="tsd-comment">
								<div class="lead">
									<p>Class that implements formatting and parsing of numbers and Dates.</p>
								</div>
								<p>By default, <a href="wijmo.globalize.html">Globalize</a> uses the American English culture.
									To switch cultures, include the appropriate <strong>wijmo.culture</strong>
								file after the wijmo files.</p>
								<p>The example below shows how you can use the <a href="wijmo.globalize.html">Globalize</a> class
								to format dates, times, and numbers in different cultures:</p>
								<p><a href="/wijmo/demos/Core/Globalization/Formatting" target="_blank">Example</a></p>
							</div>
						</section>
						<section class="tsd-hierarchy">
							<h3>Heirarchy</h3>
							<ul class="tsd-hierarchy">
								<li>
									<span class="target">Globalize</span>
								</li>
							</ul>
						</section>
						<section class="tsd-index-group">
							<section class="tsd-index-panel">
								<div class="tsd-index-content">
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Methods
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="wijmo.globalize.html#format" class="tsd-kind-icon">format</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="wijmo.globalize.html#formatdate" class="tsd-kind-icon">format<wbr>Date</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="wijmo.globalize.html#formatnumber" class="tsd-kind-icon">format<wbr>Number</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="wijmo.globalize.html#getfirstdayofweek" class="tsd-kind-icon">get<wbr>First<wbr>Day<wbr>OfWeek</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="wijmo.globalize.html#getnumberdecimalseparator" class="tsd-kind-icon">get<wbr>Number<wbr>Decimal<wbr>Separator</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="wijmo.globalize.html#parsedate" class="tsd-kind-icon">parse<wbr>Date</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="wijmo.globalize.html#parsefloat" class="tsd-kind-icon">parse<wbr>Float</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="wijmo.globalize.html#parseint" class="tsd-kind-icon">parse<wbr>Int</a></li>
										</ul>
									</section>
								</div>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Methods</h2>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a name="format" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagStatic">Static</span> format</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
									<li class="tsd-signature tsd-kind-icon">format<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, format<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, trim<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span>, truncate<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span>, defaultPrec<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Formats a number or a date.</p>
											</div>
											<p>The format strings used with the <a href="wijmo.globalize.html#format">format</a> function are similar to
												the ones used by the .NET Globalization library.
											The tables below contains links that describe the formats available:</p>
											<ul>
												<li><a href="https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings">
												Standard Numeric Format Strings</a></li>
												<li><a href="https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings">
												Standard Date and Time Format Strings</a></li>
												<li><a href="https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings">
												Custom Date and Time Format Strings</a></li>
											</ul>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>value: <span class="tsd-signature-type">any</span></h5>
												<div class="tsd-comment">
													<p>Number or Date to format (all other types are converted to strings).</p>
												</div>
											</li>
											<li>
												<h5>format: <span class="tsd-signature-type">string</span></h5>
												<div class="tsd-comment">
													<p>Format string to use when formatting numbers or dates.</p>
												</div>
											</li>
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> trim: <span class="tsd-signature-type">boolean</span></h5>
												<div class="tsd-comment">
													<p>Whether to remove trailing zeros from numeric results.</p>
												</div>
											</li>
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> truncate: <span class="tsd-signature-type">boolean</span></h5>
												<div class="tsd-comment">
													<p>Whether to truncate the numeric values rather than round them.</p>
												</div>
											</li>
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> defaultPrec: <span class="tsd-signature-type">number</span></h5>
												<div class="tsd-comment">
													<p>Precision to use if not specified in the format string.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
										<p>A string representation of the given value.</p>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a name="formatdate" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagStatic">Static</span> formatDate</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
									<li class="tsd-signature tsd-kind-icon">format<wbr>Date<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Date</span>, format<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Formats a date using the current culture.</p>
											</div>
											<p>The <a href="wijmo.globalize.html#format">format</a> parameter contains a .NET-style
												<a href="https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings">Date format string</a>
											with the following additions:</p>
											<ul>
												<li><i>Q, q</i> Calendar quarter.</li>
												<li><i>U</i> Fiscal quarter (government).</li>
												<li><i>u</i> Fiscal quarter (private sector).</li>
												<li><i>EEEE, EEE, EE, E</i> Fiscal year (government).</li>
												<li><i>eeee, eee, ee, e</i> Fiscal year (private sector).</li>
											</ul>
											<p>For example:</p>
											<pre><code class="language-typescript"><span class="hljs-keyword">import</span> { Globalize } <span class="hljs-keyword">from</span> <span class="hljs-string">'@mescius/wijmo'</span>;
<span class="hljs-keyword">let</span> dt = <span class="hljs-keyword">new</span> <span class="hljs-built_in">Date</span>(<span class="hljs-number">2015</span>, <span class="hljs-number">9</span>, <span class="hljs-number">1</span>); <span class="hljs-comment">// Oct 1, 2015</span>
<span class="hljs-built_in">console</span>.log(<span class="hljs-string">'result'</span>, Globalize.format(dt, <span class="hljs-string">'"FY"EEEE"Q"U'</span>) + <span class="hljs-string">' (US culture)'</span>);
**result** FY2016Q1 (US culture)</code></pre>
											<p>Another addition is available for dealing with complex eras such
											as those defined in the Japanese culture:</p>
											<ul>
												<li><i>ggg</i> Era name (e.g. '平成', '昭和', '大正', or '明治').</li>
												<li><i>gg</i> Era initial (e.g. '平', '昭', '大', or '明').</li>
												<li><i>g</i> Era symbol (e.g. 'H', 'S', 'T', or 'M').</li>
											</ul>
											<p><a href="/wijmo/demos/Core/Globalization/Formatting/purejs" target="_blank">Example</a></p>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>value: <span class="tsd-signature-type">Date</span></h5>
												<div class="tsd-comment">
													<p>Number or Date to format.</p>
												</div>
											</li>
											<li>
												<h5>format: <span class="tsd-signature-type">string</span></h5>
												<div class="tsd-comment">
													<p>.NET-style Date format string.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
										<p>A string representation of the given date.</p>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a name="formatnumber" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagStatic">Static</span> formatNumber</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
									<li class="tsd-signature tsd-kind-icon">format<wbr>Number<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, format<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, trim<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span>, truncate<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span>, defaultPrec<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Formats a number using the current culture.</p>
											</div>
											<p>The <a href="wijmo.globalize.html#formatnumber">formatNumber</a> method accepts all .NET-style
												<a href="https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings">
												Standard Numeric Format Strings</a> and provides support
											for scaling, prefixes, suffixes, and custom currency symbols.</p>
											<p>Numeric format strings take the form <i>Axxsscc</i>, where:</p>
											<ul>
												<li>
													<i>A</i> is a single alphabetic character called the format
												specifier (described below).</li>
												<li>
													<i>xx</i> is an optional integer called the precision specifier.
												The precision specifier affects the number of digits in the result.</li>
												<li>
													<i>ss</i> is an optional string used to scale the number. If provided,
													it must consist of commas. The number is divided by 1000 for each comma
												specified.</li>
												<li>
													<i>cc</i> is an optional string used to override the currency symbol
													when formatting currency values. This is useful when formatting
													currency values for cultures different than the current default
													(for example, when formatting Euro or Yen values in applications
												that use the English culture).</li>
											</ul>
											<p>The following table describes the standard numeric format specifiers and
												displays sample output produced by each format specifier for the default
											culture.</p>
											<p><b>c</b> Currency: <code>formatNumber(1234, 'c') =&gt; '$1,234.00'</code><br>
												<b>d</b> Decimal (integers): <code>formatNumber(-1234, 'd6') =&gt; '-001234'</code><br>
												<b>e</b> Scientific Notation (lower-case 'e'): <code>formatNumber(123.456, 'e6') =&gt; '1.234560e+2'</code>
												<b>E</b> Scientific Notation (upper-case 'e'): <code>formatNumber(123.456, 'E6') =&gt; '1.234560E+2'</code>
												<b>f</b> Fixed-point: <code>formatNumber(1234.5, 'f2') =&gt; '1234.50'</code><br>
												<b>F</b> Fixed-point (with thousand separators): <code>formatNumber(1234.5, 'F2') =&gt; '1,234.50'</code><br>
												<b>g</b> General (no trailing zeros): <code>formatNumber(1234.50, 'g2') =&gt; '1234.5'</code><br>
												<b>G</b> General (no trailing zeros, thousand separators): <code>formatNumber(1234.5, 'G2') =&gt; '1,234.5'</code><br>
												<b>n</b> Number: <code>formatNumber(1234.5, 'n2') =&gt; '1,234.50'</code><br>
												<b>p</b> Percent: <code>formatNumber(0.1234, 'p2') =&gt; '12.34%'</code>
												<b>P</b> Percent (no thousand separators): <code>formatNumber(12.34, 'P2') =&gt; '1234%'</code>
												<b>r</b> Round-trip (same as g15): <code>formatNumber(0.1234, 'r') =&gt; '0.1234'</code>
											<b>x</b> Hexadecimal (integers): <code>formatNumber(1234, 'x6') =&gt; '0004d2'</code><br></p>
											<p>The scaling specifier is especially useful when charting large values. For
												example, the markup below creates a chart that plots population versus GDP.
												The raw data expresses the population is units and the GDP in millions.
												The scaling specified in the axes formats causes the chart to show population
											in millions and GDP in trillions:</p>
											<pre><code class="language-typescript"><span class="hljs-keyword">import</span> { FlexChart} <span class="hljs-keyword">from</span> <span class="hljs-string">'@mescius/wijmo.chart'</span>;
<span class="hljs-keyword">new</span> FlexChart(<span class="hljs-string">'#theChart'</span>, {
    itemsSource: countriesGDP,
    bindingX: <span class="hljs-string">'pop'</span>,
    chartType: <span class="hljs-string">'Scatter'</span>,
    series: [
        { name: <span class="hljs-string">'GDP'</span>, binding: <span class="hljs-string">'gdp'</span> }
    ],
    axisX: {
        title: <span class="hljs-string">'Population (millions)'</span>
        format: <span class="hljs-string">'n0,,'</span>
    },
    axisY: {
        title: <span class="hljs-string">'GDP (US$ trillions)'</span>
        format: <span class="hljs-string">'c0,,'</span>
    }
});</code></pre>
											<p>The format string may also include constant prefix and suffix
												strings to be added to the output.
												If present, the prefix and suffix are specified as <em>double-quoted</em>
											strings at the start and end of the format string:</p>
											<pre><code class="language-typescript"><span class="hljs-keyword">import</span> { Globalize } <span class="hljs-keyword">from</span> <span class="hljs-string">'@mescius/wijmo'</span>;
<span class="hljs-built_in">console</span>.log(Globalize.formatNumber(value, <span class="hljs-string">'"thousands: "c3," k"'</span>));
<span class="hljs-built_in">console</span>.log(Globalize.formatNumber(value, <span class="hljs-string">'"millions: "c1,," M"'</span>));</code></pre>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>value: <span class="tsd-signature-type">number</span></h5>
												<div class="tsd-comment">
													<p>Number to format.</p>
												</div>
											</li>
											<li>
												<h5>format: <span class="tsd-signature-type">string</span></h5>
												<div class="tsd-comment">
													<p>.NET-style standard numeric format string (e.g. 'n2', 'c4', 'p0', 'g2', 'd2').</p>
												</div>
											</li>
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> trim: <span class="tsd-signature-type">boolean</span></h5>
												<div class="tsd-comment">
													<p>Whether to remove trailing zeros from the result.</p>
												</div>
											</li>
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> truncate: <span class="tsd-signature-type">boolean</span></h5>
												<div class="tsd-comment">
													<p>Whether to truncate the value rather than round it.</p>
												</div>
											</li>
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> defaultPrec: <span class="tsd-signature-type">number</span></h5>
												<div class="tsd-comment">
													<p>Precision to use if not specified in the format string.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
										<p>A string representation of the given number.</p>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a name="getfirstdayofweek" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagStatic">Static</span> getFirstDayOfWeek</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
									<li class="tsd-signature tsd-kind-icon">get<wbr>First<wbr>Day<wbr>OfWeek<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Gets the first day of the week according to the current culture.</p>
											</div>
											<p>The value returned is between zero (Sunday) and six (Saturday).</p>
										</div>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a name="getnumberdecimalseparator" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagStatic">Static</span> getNumberDecimalSeparator</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
									<li class="tsd-signature tsd-kind-icon">get<wbr>Number<wbr>Decimal<wbr>Separator<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Gets the symbol used as a decimal separator in numbers.</p>
											</div>
										</div>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a name="parsedate" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagStatic">Static</span> parseDate</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
									<li class="tsd-signature tsd-kind-icon">parse<wbr>Date<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, format<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, refDate<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Date</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Date</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Parses a string into a Date.</p>
											</div>
											<p>Two-digit years are converted to full years based on the value of the
												calendar's <strong>twoDigitYearMax</strong> property. By default, this is set to
												2029, meaning two-digit values of 30 to 99 are parsed as 19xx, and values
											from zero to 29 are parsed as 20xx.</p>
											<p>You can change this threshold by assigning a new value to the calendar.
											For example:</p>
											<pre>// get calendar
var cal = wijmo.culture.Globalize.calendar;

// default threshold is 2029, so "30" is parsed as 1930
cal.twoDigitYearMax = 2029;
var d1 = wijmo.Globalize.parseDate('30/12', 'yy/MM'); // dec 1930

// changing threshold to 2100, so all values are parsed as 20**
cal.twoDigitYearMax = 2100;
var d2 = wijmo.Globalize.parseDate('30/12', 'yy/MM'); // dec 2030</pre>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>value: <span class="tsd-signature-type">string</span></h5>
												<div class="tsd-comment">
													<p>String to convert to a Date.</p>
												</div>
											</li>
											<li>
												<h5>format: <span class="tsd-signature-type">string</span></h5>
												<div class="tsd-comment">
													<p>Format string used to parse the date.</p>
												</div>
											</li>
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> refDate: <span class="tsd-signature-type">Date</span></h5>
												<div class="tsd-comment">
													<p>Date to use as a reference in case date or time
													parts are not specified in the format string (e.g. format = 'MM/dd').</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Date</span></h4>
										<p>The Date object represented by the given string, or null
										if the string cannot be parsed into a Date.</p>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a name="parsefloat" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagStatic">Static</span> parseFloat</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
									<li class="tsd-signature tsd-kind-icon">parse<wbr>Float<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, format<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Parses a string into a floating point number.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>value: <span class="tsd-signature-type">string</span></h5>
												<div class="tsd-comment">
													<p>String to convert to a number.</p>
												</div>
											</li>
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> format: <span class="tsd-signature-type">string</span></h5>
												<div class="tsd-comment">
													<p>Format to use when parsing the number.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
										<p>The floating point number represented by the given string,
										or <strong>NaN</strong> if the string cannot be parsed into a floating point number.</p>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a name="parseint" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagStatic">Static</span> parseInt</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
									<li class="tsd-signature tsd-kind-icon">parse<wbr>Int<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, format<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Parses a string into an integer.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>value: <span class="tsd-signature-type">string</span></h5>
												<div class="tsd-comment">
													<p>String to convert to an integer.</p>
												</div>
											</li>
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> format: <span class="tsd-signature-type">string</span></h5>
												<div class="tsd-comment">
													<p>Format to use when parsing the number.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
										<p>The integer represented by the given string,
										or <strong>NaN</strong> if the string cannot be parsed into an integer.</p>
									</li>
								</ul>
							</section>
						</section>
					</div>