ProSoft Technology MVI69-ADM User Manual

Page 330

Advertising
background image

Side-Connect API Library Functions

MVI-ADM ♦ 'C' Programmable

Developer's Guide

'C' Programmable Application Development Module

Page 330 of 342

ProSoft Technology, Inc.

February 20, 2013

MVIsc_BIN2BCD

Syntax

WORD MVIsc_BIN2BCD(WORD bin);

Parameters

bin

Binary value to be converted into BCD

Description
MVIsc_BIN2BCD converts a binary value to BCD. The value must be within the
range 0 to 9999 decimal.

Return Value
BCD representation of binary value.

Example

WORD bcd;
WORD bin;
/* Convert the value in binary to BCD */
bcd = MVIsc_BIN2BCD(bin);

Advertising