Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java equiv



 Matthew Gillen wrote: 
> Stephen Adler wrote: 
>> Java folk... 
>> 
>> What's the java equivalent to the following two statments 
>> 
>> 
>> char String[]="10.0"; double Number; sscanf(String,"%lf",&Number); 
>> char OtherString[100];sprintf(OtherString,"Number is %lf",Number); 
> 
> String numStr = "10.0"; 
> double number = Double.parseDouble(numStr); 
> 
> String otherNumStr = Double.toString(number); 
> 
>> 
>> I'd like to be able to use the ease of sscanf and ssprintf to convert 
>> and format number into and from strings... 


BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org