Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Simple String question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg110760] Re: Simple String question
  • From: Murta <rodrigomurtax at gmail.com>
  • Date: Mon, 5 Jul 2010 06:02:03 -0400 (EDT)
  • References: <i0k2ft$jra$1@smc.vnet.net> <i0n9sg$hqg$1@smc.vnet.net>

Well... there is my contribution..

str="623 715 812";
FromDigits/@Sort/@IntegerDigits/@ToExpression@StringSplit[str]//Sort
{128,157,236}


Another option to read de string is use that..
str="623 715 812";
FromDigits/@Sort/@IntegerDigits/@ImportString[str,"Table"][[1]]//Sort
{128,157,236}

Rodrigo Murta


  • Prev by Date: Re: Mathematica Collect function
  • Next by Date: Re: Wolfram Alpha app for iPhone is now €0.79
  • Previous by thread: Re: Simple String question
  • Next by thread: Re: Simple String question