The Philippine Electronics and Technology Forum
July 30, 2010, 06:01:38 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

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

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

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 22


Cut once and measure twice Be sentimental in every


« on: March 02, 2010, 09: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, 09:09:06 PM »

 Logged
zeitcheist
Size AA Battery
**

Pogi/Ganda Points: 2
Offline Offline

Gender: Male
Posts: 109



« Reply #1 on: March 02, 2010, 11:14:02 PM »

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
Size AAA Battery
*

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 22


Cut once and measure twice Be sentimental in every


« Reply #2 on: March 02, 2010, 11:40:31 PM »

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: 109



« Reply #3 on: March 03, 2010, 12: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 483 Last post February 15, 2009, 03:45:03 AM
by Tambay_7
netbeans mysql code
Database Management
ineedhelp 0 591 Last post February 22, 2009, 10:38:02 AM
by ineedhelp
Java Netbeans
Java Programming
sakura 1 256 Last post December 02, 2009, 02:22:42 PM
by zeitcheist
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!