HP3000-L Archives

April 1998, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Roy Buzdor <[log in to unmask]>
Reply To:
Roy Buzdor <[log in to unmask]>
Date:
Thu, 16 Apr 1998 13:58:00 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
[log in to unmask] wrote:
>
> I have an old HP85 Basic program with the following command;
>
> IF NUM1 DIV NUM2 MOD M=0 THEN GOSUB 9000
>
> I am trying to get this program to run in QBASIC/GWBASIC.
> I am familiar with the MOD , but not the DIV. ...  I would
> appreciate the information on syntax and usage.

According to the manual, "DIV" is the integer form of "/"
(i.e. the "divide" operation).  The operation yields the
integer result of the operation, therefore

       "20 DIV 7" returns "2"

which is similar (but not always the same as) "INT (20/7)".

>
> TIA
>
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/   Now offering spam-free web-based newsreading

--

Buz          (8

****************************************************************
**                                                            **
**  We desire magic, the power to manipulate other people     **
**    for our own benefit.  We have been given love, the      **
**    power to change ourselves for the benefit of other      **
**    people.                                                 **
**                                                            **
**  This is official written notice: please remove me from    **
**    your mailing list.                                      **
**                                                            **
**  My real address is: \lnuslad dot dzvg41 at eds dot com\   **
**                                                            **
****************************************************************

ATOM RSS1 RSS2