Next: , Previous: , Up: stdlib bytevector   [Index]


5.2.8 Operations on IEEE 754 representations

Procedure: bytevector-ieee-single-native-ref bytevector k
Procedure: bytevector-ieee-single-ref bytevector k endianness

k, …, k+3 must be valid indices of bytevector.

For bytevector-ieee-single-native-ref, k must be a multiple of 4.

These procedures return the inexact real number object that best represents the IEEE 754 single–precision number represented by the four bytes beginning at index k.

Procedure: bytevector-ieee-double-native-ref bytevector k
Procedure: bytevector-ieee-double-ref bytevector k endianness

k, …, k+7 must be valid indices of bytevector.

For bytevector-ieee-double-native-ref, k must be a multiple of 8.

These procedures return the inexact real number object that best represents the IEEE 754 double–precision number represented by the eight bytes beginning at index k.

Procedure: bytevector-ieee-single-native-set! bytevector k x
Procedure: bytevector-ieee-single-set! bytevector k x endianness

k, …, k+3 must be valid indices of bytevector.

For bytevector-ieee-single-native-set!, k must be a multiple of 4.

These procedures store an IEEE 754 single–precision representation of x into elements k through k+3 of bytevector, and return unspecified values.

Procedure: bytevector-ieee-double-native-set! bytevector k x
Procedure: bytevector-ieee-double-set! bytevector k x endianness

k, …, k+7 must be valid indices of bytevector.

For bytevector-ieee-double-native-set!, k must be a multiple of 8.

These procedures store an IEEE 754 double–precision representation of x into elements k through k+7 of bytevector, and return unspecified values.