How do I use floating-point arithmetic in bash? September 29, 2022 by Tarik You can’t. bash only does integers; you must delegate to a tool such as bc.