# setFloat32 method Null safety

void setFloat32(
1. int byteOffset,
2. double value,
3. [Endian endian = Endian.big]
)

Sets the four bytes starting at the specified `byteOffset` in this object to the IEEE 754 single-precision binary floating-point (binary32) representation of the specified `value`.

Note that this method can lose precision. The input `value` is a 64-bit floating point value, which will be converted to 32-bit floating point value by IEEE 754 rounding rules before it is stored. If `value` cannot be represented exactly as a binary32, it will be converted to the nearest binary32 value. If two binary32 values are equally close, the one whose least significant bit is zero will be used. Note that finite (but large) values can be converted to infinity, and small non-zero values can be converted to zero.

The `byteOffset` must be non-negative, and `byteOffset + 4` must be less than or equal to the length of this object.

## Implementation

``void setFloat32(int byteOffset, double value, [Endian endian = Endian.big]);``
{"ft_lang_label":"__label__en","ft_lang_prob":0.7061724,"math_prob":0.9738678,"size":931,"snap":"2021-43-2021-49","text_gpt3_token_len":213,"char_repetition_ratio":0.12837109,"word_repetition_ratio":0.013605442,"special_character_ratio":0.22019334,"punctuation_ratio":0.093023255,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.988415,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-11-27T02:26:51Z\",\"WARC-Record-ID\":\"<urn:uuid:c0815f85-cf35-46bb-9ab7-0521f9c41380>\",\"Content-Length\":\"9901\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b073181f-894e-4bba-957c-4a4e35e21265>\",\"WARC-Concurrent-To\":\"<urn:uuid:5531dbab-0bd5-4274-8bf2-c279bfe350aa>\",\"WARC-IP-Address\":\"142.251.45.19\",\"WARC-Target-URI\":\"https://api.dart.dev/stable/2.14.4/dart-typed_data/ByteData/setFloat32.html\",\"WARC-Payload-Digest\":\"sha1:R5PMP5XXCT4MQRP2CQQVBEIPOKC3S6Z4\",\"WARC-Block-Digest\":\"sha1:VEPKJXQN53HPPRGWIRWDCJBIRFZCZ2EY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964358078.2_warc_CC-MAIN-20211127013935-20211127043935-00576.warc.gz\"}"}