Thread: Ask!
View Single Post
  #581 (permalink)  
Old 05-07-2007, 08:18 PM
MaanOO MaanOO is offline
Junior Member
 
Join Date: Apr 2007
Posts: 6
MaanOO is on a distinguished road
I need a script that compare between two prices and finds which one is higher.

for example:
Code:
int a1, a2;

a1=1.1111;
a2=1.1112;

if(a1<a2)
{
   Print("OK");
}
but this does not , coz the comparing is only for the numbers before the point.

I need to compare the full number with the decimal number.

I hope you understand what I mean, and help me.

Reply With Quote