[DGD]Floating Point Math

Erik Silo jinxpaw at hotmail.com
Mon Jul 10 16:29:54 CEST 2000


I am trying to to some percentage math in DGD, the only way I know to
do this is with floating point formulas.  But, I cant figure out how
to do this in DGD.  This is what I am after:

x percent of y == ?

I am tryin to do it this way:

  result= (x / 100) * y
  then round the result to nearest int.

suggestions?
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list