Hi Felix,

does

   Dim iResult as integer
   iResult = 11 \ 3

fit your needs?

The "\" operator would do the division with a whole number result.

BTW, 11 / 3 would never result as "4". ;-)

Best wishes
Dieter

Felix E. Klee wrote On 12/14/05 11:26,:
How do I perform an integer division (e.g. 11 / 3 = 4) in OpenOffice Basic?


--

  Dieter Krogh
  Support Engineer RSD StarOffice/Linux/Cobalt EMEA

  Sun Services               Tel:  (+49 40) 23646-744 / x66744
  Sun Microsystems GmbH      Fax:  (+49 40) 23646-750
  Sachsenfeld 4              http://www.sun.de
  D-20097 Hamburg            mailto:[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to