Ldiv()

Da Gambas-it.org - Wikipedia.

La funzione "ldiv()" divide un numero (numeratore) per un denominatore, restituendo il quoziente. [Nota 1]
Essa è descritta nel file header "/usr/include/stdlib.h ".

Mostriamo un esempio pratico:

Library "libc:6"

' ldiv_t ldiv (long int __numer, long int __denom)
' Return the `ldiv_t' representation of the value of NUMER over DENOM.
Private Extern ldiv(__numer As Long, __denom As Long) As Long


Public Sub Main()
 
 Print ldiv(12, 3)
  
End


Note

[1] Vedere anche questa discussione sul forum: https://www.gambas-it.org/smf/index.php?topic=5651.0


Riferimenti