← All docs

ptr_write_f32()

Writes one IEEE 754 single-precision value through a raw pointer, rounding the float to 32 bits.

ptr_write_f32()

function ptr_write_f32(pointer $pointer, mixed $value): void

Writes one IEEE 754 single-precision value through a raw pointer, rounding the float to 32 bits.

Parameters:

  • $pointer (pointer)
  • $value (mixed)

Returns: void

Availability

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how ptr_write_f32 is implemented in the compiler, see the internals page.