caramoan tour package

caramoan tour package

Author Topic: Netbeans help...  (Read 491 times)

Offline nomad

  • CR2032 Battery
  • **
  • Posts: 22
  • Pogi/Ganda Points: 0
  • Gender: Male
  • Cut once and measure twice Be sentimental in every
Netbeans help...
« 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 ;D,...
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!

Philippine Electronics Forum

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

Offline zeitcheist

  • Size AA Battery
  • ****
  • Posts: 114
  • Pogi/Ganda Points: 2
  • Gender: Male
Re: Netbeans help...
« Reply #1 on: March 03, 2010, 12:14:02 AM »
Anong gamit mo output? Graphics?

using DecimalFormat class:
Code: [Select]
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,
There are only 10 types of people in the world;
those who understand binary, and those who don't.

Philippine Electronics Forum

Re: Netbeans help...
« Reply #1 on: March 03, 2010, 12:14:02 AM »

Offline nomad

  • CR2032 Battery
  • **
  • Posts: 22
  • Pogi/Ganda Points: 0
  • Gender: Male
  • Cut once and measure twice Be sentimental in every
Re: Netbeans help...
« Reply #2 on: March 03, 2010, 12:40:31 AM »
:D thnx a lot :D
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!

Philippine Electronics Forum

Re: Netbeans help...
« Reply #2 on: March 03, 2010, 12:40:31 AM »

Offline zeitcheist

  • Size AA Battery
  • ****
  • Posts: 114
  • Pogi/Ganda Points: 2
  • Gender: Male
Re: Netbeans help...
« Reply #3 on: March 03, 2010, 01:55:25 AM »
:D thnx a lot :D
Gumana ba? Hindi ako sure eh, hehe. Dati ko pa kasi nabasa yan.. ^^
There are only 10 types of people in the world;
those who understand binary, and those who don't.

Philippine Electronics Forum

Re: Netbeans help...
« Reply #3 on: March 03, 2010, 01:55:25 AM »

 

Privacy Policy

Contact Us: elabph@yahoo.com