Hi Jerrold

Do you mean something like this?:

public double myMethod(double d){
return d/100;
}

2009/3/12 Jerrold <[email protected]>

>
> Hi,
>
> Can anyone help me on this. can anyone give me an idea on how to
> convert a desimal number to its percent equivalent like, i want to
> have a function that would take a decimal number as its parameter then
> it would convert the decimal into the percentage equivalent of that
> decimal.
> e.g:  10% of 100 = .1 so if i would enter a value 10 to the function.
> the result would be .1
>
> Since you cannot devide a smaller nuber with a larger number. is there
> any other way?
>
> Thanks in advance!
> Dave
>
> >
>


-- 
Atentamente

Alfonso Bullon Vallejo

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to