Chapter Contents

Previous

Next
KTRUNCATE

KTRUNCATE



Truncates a numeric value to a specified length

Category: DBCS


Syntax
Arguments
Details

Syntax

KTRUNCATE(number,length)

Arguments

number
is numeric.

length
is numeric and integer.


Details

The KTRUNCATE function truncates a full-length number (stored as a double) to a smaller number of bytes, as specified in length and pads the truncated bytes with 0s. The truncation and subsequent expansion duplicate the effect of storing numbers in less than full length and then reading them.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.