<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://miniscript.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=%E6%9E%AF%E8%90%8E%E3%81%AE%E8%8A%B1</id>
	<title>MiniScript Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://miniscript.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=%E6%9E%AF%E8%90%8E%E3%81%AE%E8%8A%B1"/>
	<link rel="alternate" type="text/html" href="http://miniscript.org/wiki/Special:Contributions/%E6%9E%AF%E8%90%8E%E3%81%AE%E8%8A%B1"/>
	<updated>2026-05-03T02:37:46Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>http://miniscript.org/w/index.php?title=Type_Coercion&amp;diff=1200</id>
		<title>Type Coercion</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Type_Coercion&amp;diff=1200"/>
		<updated>2024-02-21T04:54:10Z</updated>

		<summary type="html">&lt;p&gt;枯萎の花: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''WIP'''&lt;br /&gt;
&lt;br /&gt;
Known type coercion rules:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;c&amp;gt;null * 3 == #@!$&amp;lt;/c&amp;gt; &amp;amp;mdash; Any statement that begins with `null` is a compiler error, but this may change in the future.&lt;br /&gt;
&amp;lt;c&amp;gt;(null)&amp;lt;/c&amp;gt; is okay though.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;c&amp;gt;3 * null == 0&amp;lt;/c&amp;gt; &amp;amp;mdash; Multiplying by null yields &amp;lt;c&amp;gt;0&amp;lt;/c&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;c&amp;gt;3 / null == Infinity&amp;lt;/c&amp;gt; &amp;amp;mdash; In division, null acts a lot like &amp;lt;c&amp;gt;0&amp;lt;/c&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;c&amp;gt;3 + &amp;quot;3&amp;quot; == &amp;quot;33&amp;quot;&amp;lt;/c&amp;gt; &amp;amp;mdash; If an expression contains a string, the entire expression will be coerced into a string.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;c&amp;gt;&amp;quot;3&amp;quot; * 5 == &amp;quot;33333&amp;quot;&amp;lt;/c&amp;gt; &amp;amp;mdash; Multiplying a string by a number will replicate the string.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;c&amp;gt;&amp;quot;1234&amp;quot; / 2 == &amp;quot;12&amp;quot;&amp;lt;/c&amp;gt; &amp;amp;mdash; Dividing a string by a number will divide the length, then take a substring.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;c&amp;gt;1/0 == &amp;quot;INF&amp;quot; | &amp;quot;Infinity&amp;quot;&amp;lt;/c&amp;gt; &amp;amp;mdash; All numerical math is done according to standard IEEE floating-point rules, including well-defined behavior for Inf and NaN.  However, conversion of Inf and NaN to a string is undefined (implementation-dependent).&lt;/div&gt;</summary>
		<author><name>枯萎の花</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=Type_Coercion&amp;diff=1195</id>
		<title>Type Coercion</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Type_Coercion&amp;diff=1195"/>
		<updated>2024-02-20T16:11:17Z</updated>

		<summary type="html">&lt;p&gt;枯萎の花: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''WIP'''&lt;br /&gt;
&lt;br /&gt;
Known type coercion rules:&lt;br /&gt;
&lt;br /&gt;
`null * 3 == #@!$`&lt;br /&gt;
Any statement that begins with `null` is a compiler error, but this may change in the future.&lt;br /&gt;
`(null)` is okay though.&lt;br /&gt;
&lt;br /&gt;
`3 * null == 0`&lt;br /&gt;
Multiplying by null yields 0.&lt;br /&gt;
&lt;br /&gt;
`3 / null == Infinity`&lt;br /&gt;
In division, null acts a lot like `0`.&lt;br /&gt;
&lt;br /&gt;
`3 + &amp;quot;3&amp;quot; == &amp;quot;33&amp;quot;`&lt;br /&gt;
If an expression contains a string, the entire expression will be coerced into a string.&lt;br /&gt;
&lt;br /&gt;
`&amp;quot;3&amp;quot; * 5 == &amp;quot;33333`&lt;br /&gt;
Multiplying a string by a number will replicate the string.&lt;br /&gt;
&lt;br /&gt;
`&amp;quot;1234&amp;quot; / 2 == &amp;quot;12&amp;quot;`&lt;br /&gt;
Dividing a string by a number will divide the length, then take a substring.&lt;br /&gt;
&lt;br /&gt;
`1/0 == &amp;quot;INF&amp;quot; | &amp;quot;Infinity&amp;quot;`&lt;br /&gt;
The concept of infinity and negative infinity sort of exists, but isn't well-defined.&lt;/div&gt;</summary>
		<author><name>枯萎の花</name></author>
		
	</entry>
</feed>