The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: decimal numbers
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 01-06-2009
SFNYC SFNYC is offline
Registered User
  
 

Join Date: Jun 2008
Location: New York City
Posts: 95
You want to do this in what? KSH? Bash? Perl?

Why don't you set a separate iterator variable like this:


Code:
// pseudo code - depends on your language

x=0.1
LIMIT = 6

for ((idx=x*10; idx<=LIMIT; idx++))
do
-
-
-
done