Float32x4.splat constructor

Float32x4.splat(
  1. double value
)

Creates a Float32x4 with the same 32-bit float value four times.

The created value has the same Float32x4.x, Float32x4.y, Float32x4.z and Float32x4.w value, which is the 32-bit floating point value created by converting the 64-bit floating point value to a 32-bit floating point value.

The conversion from 64-bit float to 32-bit float loses significant precision, and may become zero or infinite even if the original 64-bit floating point value was non-zero and finite.

Implementation

external factory Float32x4.splat(double value);