Skip to Content
0
Former Member
Oct 16, 2009 at 05:03 AM

Rounding a character to 4 decimal places

161 Views

Hi all,

How to round a character to 4 decimal places

Suppose,

data : var1 type char15.

var1 = 35.12345678

now i have a reqt to consider only 4 decimal places if any , so var1 should hold 35.1234.

How can i do this ? (Remember var1 is of char type)

Thanks!