User's Reference > General > TCL and General User Commands > Command Reference > D > DIVD

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

DIVD (TCL) (m604806+divd.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

DIVD

Divides one decimal integer number by another.

Command Class

TCL-I command.

Syntax

DIVD n m

Syntax Elements

n is a decimal integer number; the dividend.

m is a decimal integer number; the divisor.

Restrictions

Only divides integers. Any decimal point is treated as a space and the numbers to the left and right of it as two separate integers.

Results

The result of the division is displayed on the line immediately below the command. This comprises the quotient (on the left) and the remainder (on the right).

Negative Numbers

Negative decimal numbers are specified by typing a minus sign immediately prior to the first digit of the number.

Largest Numbers

The largest numbers that this process handles are:

+140,737,488,355,327
-140,737,488,355,327

Examples

:DIVD 100074 25
      4002 24
:DIVD -1000 20
      -50   0

RealityV15.1 (MoTW) Revision 7Comment on this topic