Re: Maths Functions

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi Chris,

try these....

function RoundDown(atom a)
    return floor(a)
end function

function RoundUp(atom a)
    if integer(a) then
        return a
    else
        return floor(a + 1)
    end if
end function

function Round(atom a, integer places)
    return floor(a * power(10, places) + 0.5) * power(10, -places)
end function

----- Original Message ----- 
From: "Structural D-zine" <structuraldzine at hotmail.com>
To: "EUforum" <EUforum at topica.com>
Sent: Friday, July 20, 2001 7:51 PM
Subject: Maths Functions

> I have been looking for maths functions equivalent to the Basic
> Round(x,no of places)
> RoundUp
> RoundDown
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu