Re: HELP ABOUT REMAINDER IN PL/SQL

From: Alan <alanshein_at_spambuster.erols.com>
Date: Fri, 17 Nov 2000 10:57:40 -0500
Message-ID: <8v3kh3$njg$1_at_bob.news.rcn.net>


MOD(value,divisor)

examples:
MOD(10,3) returns 1
MOD(100,10) returns 0

"Andrew Huy Truong" <andrew-htruong_at_home.com> wrote in message news:Ds4R5.53006$4U6.2268535_at_news1.rdc2.on.home.com...
> Hi, I have a problem here hoping someone could help me out, I'll be very
> much appreciated.
> I need to know the symbol for a REMAINDER of a number, for example, 5
 divide
> by 2, then the remainder would be 1. Or if 8 divide 3 then the remainder
> would be 2 and so on...
> I know in C language the symbol is %.
> like 5 % 2;
> I'd like to know this symbol for PL/SQL or SQL plus, or if you can let me
> know the formula that would calculate the same result.
>
>
> Thanks a bunch.
> my email is andrew-htruong_at_home.com
> Andrew.
>
>
> I am doing this assignment for a class and I required to:
>
> write a function convert_into_words tht takes in number value and returns
> the same number into words (take number from 1 to 99) for example: if 1 is
> passed then 'one' is returned, or 5 is passed, then 'five' is returned.
>
> I cannot use any bulit in function.
>
>
>
Received on Fri Nov 17 2000 - 16:57:40 CET

Original text of this message