S shekar.kr New Member Nov 1, 2010 #1 Give me an example for mod function with out using mod operator.
tamhas ProgressTalk.com Sponsor Nov 9, 2010 #6 The correct full keyword is MODULO and the example *from the manual* is: Code: REPEAT: SET qty-avail AS INTEGER LABEL "Qty. Avail.". SET std-cap AS INTEGER LABEL "Std. Truck Capacity". DISPLAY TRUNCATE(qty-avail / std-cap,0) FORMAT ">,>>9" LABEL "# Full Loads" qty-avail MODULO std-cap LABEL "Qty. Left". END.
The correct full keyword is MODULO and the example *from the manual* is: Code: REPEAT: SET qty-avail AS INTEGER LABEL "Qty. Avail.". SET std-cap AS INTEGER LABEL "Std. Truck Capacity". DISPLAY TRUNCATE(qty-avail / std-cap,0) FORMAT ">,>>9" LABEL "# Full Loads" qty-avail MODULO std-cap LABEL "Qty. Left". END.