<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://dev.eiffel.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Saunders</id>
		<title>EiffelStudio: an EiffelSoftware project - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://dev.eiffel.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Saunders"/>
		<link rel="alternate" type="text/html" href="https://dev.eiffel.com/Special:Contributions/Saunders"/>
		<updated>2026-04-07T17:01:44Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://dev.eiffel.com/index.php?title=Talk:Not_a_Number&amp;diff=13695</id>
		<title>Talk:Not a Number</title>
		<link rel="alternate" type="text/html" href="https://dev.eiffel.com/index.php?title=Talk:Not_a_Number&amp;diff=13695"/>
				<updated>2010-02-20T03:18:23Z</updated>
		
		<summary type="html">&lt;p&gt;Saunders: /* One possibility for working with NaN */ new section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''--[[User:Manus|manus]] 19:37, 8 May 2007 (CEST)''': Have a look at [[Real_numbers| Real Numbers]] page where we already started a similar discussion but currently only for the specification of REAL_64, not its usage.&lt;br /&gt;
&lt;br /&gt;
== One possibility for working with NaN ==&lt;br /&gt;
&lt;br /&gt;
I was working on a project to represent complex numbers and used the following `is_equal' to accomodate the use of NaNs:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	is_equal (other: like Current): BOOLEAN&lt;br /&gt;
			-- Is `other' attached to an object considered&lt;br /&gt;
			-- equal to current object?&lt;br /&gt;
			-- If current object is not a number (NaN) and&lt;br /&gt;
			-- `other' is as well `True' will be returned.&lt;br /&gt;
		do&lt;br /&gt;
			if is_nan then&lt;br /&gt;
				if real /~ real and then imaginary ~ imaginary then&lt;br /&gt;
					Result := real /~ other.real and then imaginary ~ other.imaginary&lt;br /&gt;
				elseif real ~ real and then imaginary /~ imaginary then&lt;br /&gt;
					Result := real ~ other.real and then imaginary /~ other.imaginary&lt;br /&gt;
				elseif real /~ real and then imaginary /~ imaginary then&lt;br /&gt;
					Result := real /~ other.real and then imaginary /~ other.imaginary&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
				Result := real ~ other.real and then imaginary ~ other.imaginary&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;/div&gt;</summary>
		<author><name>Saunders</name></author>	</entry>

	</feed>