Path: news.mathworks.com!newsfeed-00.mathworks.com!solaris.cc.vt.edu!news.vt.edu!news.glorb.com!news2.glorb.com!tr22g12.aset.psu.edu!news.mathforum.org!not-for-mail
From: bogfrog <aj00mcgraw@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: floating point help!
Date: Thu, 24 Jun 2010 10:43:36 EDT
Organization: The Math Forum
Lines: 5
Message-ID: <1675532262.20705.1277390646666.JavaMail.root@gallium.mathforum.org>
References: <hvvbvn$lim$1@fred.mathworks.com>
NNTP-Posting-Host: gallium.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1.mathforum.org 1277390646 28257 144.118.94.39 (24 Jun 2010 14:44:06 GMT)
X-Complaints-To: news@news.mathforum.org
NNTP-Posting-Date: Thu, 24 Jun 2010 14:44:06 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:647758

>digits = double(sprintf('%d', 3813919) - '0');

This works beautifully, but what in the world is going on?

How does subtracting '0' turn this into an array of digits?