The Philippine Electronics and Technology Forum
February 10, 2012, 04:32:35 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  

Pages: [1]   Go Down
  Print  
Author Topic: Netbeans help...  (Read 388 times)
nomad
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 22


Cut once and measure twice Be sentimental in every


« on: March 02, 2010, 10:09:06 PM »

ganito po kc, i'm working on a simple calculator out of netbeans,. its just our assignment but i want to do it in advance by making a scientific calculator,. i already got the sin, cos & tan functiion.. ngaun po, pano po b i-set ang decimal places ng output display, kc po 17 decimal places ang display nya, gusto ko pong gawin n 10 lng,.. thnx Grin,...
Logged

Plaintive all through the night -
Hine, E Hine!
Weeping till morning light -
Hine, E Hine!
From my care why try to leap
There is love for you
Mother's arms their strength will keep
Hine, E Hine!
The Philippine Electronics and Technology Forum
« on: March 02, 2010, 10:09:06 PM »

 Logged
zeitcheist
Size AA Battery
****

Pogi/Ganda Points: 2
Offline Offline

Gender: Male
Posts: 114



« Reply #1 on: March 03, 2010, 12:14:02 AM »

Anong gamit mo output? Graphics?

using DecimalFormat class:
Code:
import java.text.*;

DecimalFormat formatter = new DecimalFormat("#0.0000000000"); // 10 decimal places
double toFormat = 123.1234567890123456; // kunyari 17 places
String formatted = formatter.format(toFormat); // call mu ung format method ng DecimalFormat

canvas.printString(formatted); // replace this with whatever your output method is


Best regards,
Logged

There are only 10 types of people in the world;
those who understand binary, and those who don't.
nomad
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 22


Cut once and measure twice Be sentimental in every


« Reply #2 on: March 03, 2010, 12:40:31 AM »

Cheesy thnx a lot Cheesy
Logged

Plaintive all through the night -
Hine, E Hine!
Weeping till morning light -
Hine, E Hine!
From my care why try to leap
There is love for you
Mother's arms their strength will keep
Hine, E Hine!
zeitcheist
Size AA Battery
****

Pogi/Ganda Points: 2
Offline Offline

Gender: Male
Posts: 114



« Reply #3 on: March 03, 2010, 01:55:25 AM »

Cheesy thnx a lot Cheesy
Gumana ba? Hindi ako sure eh, hehe. Dati ko pa kasi nabasa yan.. ^^
Logged

There are only 10 types of people in the world;
those who understand binary, and those who don't.
The Philippine Electronics and Technology Forum
   

 Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
netbeans
Java Programming
ineedhelp 1 762 Last post February 15, 2009, 04:45:03 AM
by 7_SeVeN_7
netbeans mysql code
Database Management
ineedhelp 0 892 Last post February 22, 2009, 11:38:02 AM
by ineedhelp
Java Netbeans
Java Programming
sakura 1 489 Last post December 02, 2009, 03:22:42 PM
by zeitcheist
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!