---
source: kcl/src/simulation_tests.rs
description: Error from executing invalid_index_fractional.kcl
---
KCL Semantic error

  × semantic: 1.2 is not a valid index, indices must be whole numbers >= 0
   ╭─[2:5]
 1 │ arr = [1, 2, 3]
 2 │ x = arr[1.2]
   ·     ────────
   ╰────
