my dog learned polymorphism*
The moose likes Beginning Java and the fly likes convert double to float ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "convert double to float ?" Watch "convert double to float ?" New topic
Author

convert double to float ?

Anto Telvin
Ranch Hand

Joined: Aug 12, 2008
Posts: 113
hi all

how can i convert a double to float manually?


thanks


Anto Telvin Mathew<br />Many of the life failures are people who did not realize how close they were to success when they give up. EDISON
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

double d = 3.0;
float f = (float) d;


[Jess in Action][AskingGoodQuestions]
Anto Telvin
Ranch Hand

Joined: Aug 12, 2008
Posts: 113
thanks for i want it using manual? tat is by work out in a paper without waiting for the output by looking into the screen
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18523
    
  40

See your other topic...

http://www.coderanch.com/t/411840/java/java/convert-number-IEEE-FPS

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Anto Telvin
Ranch Hand

Joined: Aug 12, 2008
Posts: 113
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: convert double to float ?
 
Similar Threads
converting float to double
conversion from String to any data type
How are the float and boolean variables stored?
How to use C++ created binary files
Explicit casting