BShr

<< Click to Display Table of Contents >>

 

BShr

BShr(Value, Bits, [PreserveSign])

Returns the Value parameter right-shifted the number of bits specified in the Bits parameter. This method returns an error in case the Bits parameter is outside the allowed range (from zero to 31). The PreserveSign parameter is a Boolean that allows filling or not the bits to the left with a copy of the signal bit. If omitted, fills the bits to the left with zeroes. This method is available in Links, as well as in scripts.

 

NOTE

This method allows passing an unsigned 32-bit value, in the range between zero and 4,294,967,296, to the Value parameter, but its return value is always a signed 32-bit value, in the range between -2,147,483,648 and 2,147,483,647. If a floating point value is used, only this value's integer part is used.

Was this page useful?