MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Convert string to number


I used an application called "To Text Converter" (Mac, OS 10.7.3) to
convert a PDF document to text form. I wanted to extract some numbers
from the converted document using Mathematica. In the process, for
example, I obtained the string, 1727.65. If I apply' ToExpression' to
the string, I obtain no answer with Head, 'Symbol.' Applying FullForm
to the string gives,
"\.00\.00\.001\.00\.00\.00\.00\.00\.007\.00\.00\.002\.00\.00\.007\.00\
\.00\.00.\.00\.00\.006\.00\.00\.005\.00\.00\.00"

How do I extract a number from this?




  • Prev by Date: Re: calculation error in series
  • Next by Date: Piecewise ColorFunction
  • Previous by thread: Re: calculation error in series
  • Next by thread: Piecewise ColorFunction