Quote:
Originally Posted by [K4L
Leopard ]
Quote:
Originally Posted by cosmy
pawn Код:
stock CelsiusToFahrenheit(degrees) { new f; f = degrees + 32; return f; } native CelsiusToFahrenheit(degrees);
pawn Код:
stock FahrenheitToCelsius(degrees) { new c; c = degrees - 32; return c; } native FahrenheitToCelsius(degrees);
|
pawn Код:
stock CelsiusToFahrenheit(degrees) { new f; f = degrees*1.8; f += 32; return f; } native CelsiusToFahrenheit(degrees);
pawn Код:
stock FahrenheitToCelsius(degrees) { new c; c = degrees * 1.8; c -= 32; return c; } native FahrenheitToCelsius(degrees);
|
you can just take that function out of the pawn-lang.pdf