English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

look up JScience library, has classes for currency conversion.
You will, of course, need to set the current exchange rate. The library provides precision level for dealing with floating point currency calculations.

2007-03-02 03:06:46 · answer #1 · answered by vincentgl 5 · 0 0

here is the java program

// !! RAM !!

public class moneyconverter{

public static void main( String[] a )
{
float money = 10.01F; // original rupees
int rupees = ( int ) money ;// convert into rupee

int paise =( int) ( (money-(float) rupees) * 100);// gets the remaing paise

System.out.println(" nepali rupees is"+ rupees +"and "+ paise );// prints
}

}

2007-02-25 04:09:31 · answer #2 · answered by Anonymous · 0 1

fedest.com, questions and answers