Results 1 to 2 of 2

Thread: Java

  1. #1

    Question Java


    unsaon pag translate ni sa java = 12.33 x 10 to the power of 8.

    any idea? thanks a lot.

  2. #2
    You can use double:
    Code:
    double db1 = 12.33e8;
    Or you could use Java BIgDecimal ... although much slower than standard data types (slower than double), they preserve precision based on your given number (128 bit precision, double is only 64 bit wide) ...

    Code:
        // Create a BigDecimal number via a string
        BigDecimal bd1 = new BigDecimal("12.33E8");
    
        double dbl1 = 12.33e8;
        // multiply a big decimal by a double ... (actually squaring it)
        BigDecimal bd2 = bd1 * dbl1;

  3.    Advertisement

Similar Threads

 
  1. Advance Java
    By gloryhunter in forum Programming
    Replies: 25
    Last Post: 11-15-2007, 10:14 AM
  2. SE K500i 3D Java Games/Application.. (?)
    By mE_bytes in forum Gizmos & Gadgets (Old)
    Replies: 1
    Last Post: 07-14-2005, 11:14 PM
  3. Java Seminar
    By polie in forum Business, Finance & Economics Discussions
    Replies: 5
    Last Post: 07-09-2005, 01:38 AM
  4. Mobile Java Games
    By Nezumix22 in forum Gizmos & Gadgets (Old)
    Replies: 23
    Last Post: 05-06-2005, 05:33 PM
  5. how to install java apps/games in motorola c651
    By 8088 in forum Gizmos & Gadgets (Old)
    Replies: 4
    Last Post: 04-18-2005, 03:40 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
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top