Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10381
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!novia!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail |
|---|---|
| From | A Retey <awnl@gmx-topmail.de> |
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Converting from string to real |
| Date | Thu, 7 Jun 2012 09:24:48 +0000 (UTC) |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Sender | steve@smc.vnet.net |
| Approved | Steven M. Christensen <steve@smc.vnet.net>, Moderator |
| Message-ID | <jqps10$2gr$1@smc.vnet.net> (permalink) |
| References | <jqn5mn$her$1@smc.vnet.net> |
| Lines | 25 |
| NNTP-Posting-Date | 07 Jun 2012 09:28:44 GMT |
| NNTP-Posting-Host | 89600417.news.twtelecom.net |
| X-Trace | DXC=1WK7c^ljhI58mB8O8Rk7=0C_A=>8kQj6==_1NR_H?JP=Pian`S?IjE3EFiONJ7[Go6CPiEdP[X3@= |
| X-Complaints-To | abuse@twtelecom.net |
| X-Received-Bytes | 1525 |
| Xref | csiph.com comp.soft-sys.math.mathematica:10381 |
Show key headers only | View raw
Am 06.06.2012 10:51, schrieb fcaleyo: > Hi guys, I've got a problem with ToExpression[]. > It seems to round large real numbers off, e.g. > ToExpression["109266.75"] returns 109267., still a real, yet not exactly what the original string meant. it doesn't round, it just doesn't print more than 6 digits with the default settings. > Any idea to solve this? You can use InputForm to see that it really knows all digits (and will use them for any further calculation): ToExpression["109266.75"]//InputForm You could also change the "Displayed precision" from Edit -> Preferences in the Apearance -> Numbers -> Formatting tab. Other than that, there isn't anything to solve really :-) hth, albert
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Converting from string to real fcaleyo <fcaleyo@gmail.com> - 2012-06-06 08:51 +0000 Re: Converting from string to real Szabolcs Horvát <szhorvat@gmail.com> - 2012-06-07 09:24 +0000 Re: Converting from string to real A Retey <awnl@gmx-topmail.de> - 2012-06-07 09:24 +0000 Re: Converting from string to real "Kevin J. McCann" <kjm@KevinMcCann.com> - 2012-06-07 09:26 +0000 Re: Converting from string to real Peter Breitfeld <phbrf@t-online.de> - 2012-06-07 09:27 +0000 Re: Converting from string to real "Nasser M. Abbasi" <nma@12000.org> - 2012-06-07 09:16 +0000
csiph-web