Search Results

Search: Posts Made By: itsvikas
3,369
Posted By itsvikas
Comparing decimal numbers between 0 and 1
For numbers between 0 and 1 the below logic is not working.
Output of above shall be "correct" but its echoing "incorrect".Kindly suggest

a=.1
if [ $a -gt .01 ]
then
echo correct
else echo...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 05:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy