#!/bin/bash a[0]=-0.5 awk -v n="${a[0]}" 'BEGIN{printf "%.10f\n", n/1}'
Standard input is empty
-0.5000000000
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!