Results 1 to 7 of 7

Thread: [solved] converting to float prob

Threaded View

  1. #1

    Thread Starter
    Lively Member ayan's Avatar
    Join Date
    Jan 2004
    Posts
    112

    [solved] converting to float prob

    PHP Code:
    class Document3{
        public static 
    void main(String args[]){
            
    String s="123.450";
            
    System.out.println(Float.parseFloat(s));
        }

    outputs 123.45. zero(0) is gone. what am i doing wrong? thanx...
    Last edited by ayan; Jun 1st, 2004 at 02:25 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width