[OS X TeX] Macro for multiplying numbers

Kapila Rohan Attele attele at ameritech.net
Sat Mar 5 20:17:26 EST 2005

I made  a macro for multiplying integers

}{#2} \multiply \value{a} by \value{b} \the\value{a}}

It can multiply two integers (correctly), but  given 3 to multiply  
\mul{\mul{4}{5}}{6} it complains missing number, treated as zero.
How to define a macro that associativity to multiply more than two?

Rohan Attele
Chicago State University

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>

More information about the MacOSX-TeX mailing list