MathGroup Archive 2010

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

Search the Archive

Re: Simple String question


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