beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 313

background image

F

UNCTION

R

EFERENCE

M

UL

D

IV

(

A

,

B

,

C

)

R

EVISION

1

P

AGE

297

M

UL

D

IV

(

A

,

B

,

C

)

A

RGUMENT

T

YPE

D

ESCRIPTION

a

int

First value.

b

int

Second value.

c

int

Third value.

D

ESCRIPTION

Returns

a*b/c

. The intermediate math is done with 64-bit integers to avoid overflows.

F

UNCTION

T

YPE

This function is passive.

R

ETURN

T

YPE

int.

E

XAMPLE

d := MulDiv(a, b, c)