W3C home > Mailing lists > Public > www-math@w3.org > November 2001

Re: IEEE 754 (or 854) floating point arithmetics with MathML

From: David Carlisle <davidc@nag.co.uk>
Date: Tue, 20 Nov 2001 18:04:32 GMT
Message-Id: <200111201804.SAA22347@penguin.nag.co.uk>
To: z.hurak@c-a-k.cz
CC: www-math@w3.org, Robert.Hornych@quick.cz
> if you could give me some more hint on how to use floating point
> numbers in MathML:

i think (although some of my colleagues on the working group) may have
better suggestions that you should go

<cn type="real" definitionURL="http://standards.ieee.org/catalog/bus.html#754-1985">1.234</cn>

and then your processing code will pick that up and enforce IEEE
semantics for the number.

> As I have described earlier, we are working on some routines for conversion
> from Matlab (Polynomial Toolbox for Matlab) to MathML. A basic data type in
> Matlab is 'double'...

Do you also need to encode other kinds of representation of real number,
if all your numbers are double then (perhaps) it is enough just to use
cn type=real?

It depends really on what processing you propose to do with the numbers,
I think.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
Received on Tuesday, 20 November 2001 13:05:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:50 GMT