store/[org.clojure/clojure "1.8.0"] clj::clojure.core/aset-float

Official Documentation

Add notes
Arities
==================================================
   [array idx val]
   [array idx idx2 & idxv]

Docstring
==================================================
  Sets the value at the index/indices. Works on arrays of float. Returns val.

Source

(def-aset
  ^{:doc "Sets the value at the index/indices. Works on arrays of float. Returns val."
    :added "1.0"}
  aset-float setFloat float)

Example 1

Edit
;; create an array of 10 floats and set one of the values to 3.1415

(def fs (float-array 10))
;; => #'user/fs

(vec fs)
;; => [0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0]

(aset-float fs 3 3.1415)
;; => 3.1415

(vec fs)
;; => [0.0 0.0 0.0 3.1415 0.0 0.0 0.0 0.0 0.0 0.0]

Uses on crossclj