![](https://seccdn.libravatar.org/avatar/696255f62c3cefe5d517f913058b70bc.jpg?s=120&d=mm&r=g)
11 Dec
2007
11 Dec
'07
03:55
On Mon December 10 2007 09:34:34 pm Carlos E. R. wrote:
Obviously, it is thinking it is an octal number. How do I convince bash to use standard base ten math? Is there a prefix?
Hi Carlos, A bit of Google research reveals the prefix '10#' tells bash to use base 10 (decimal) instead octal interpretation. What happens if you try this (or some derivative?) :-) DIFF=$[ (10#$LOC_H - 10#$HWC_H)*3600 + (10#$LOC_M - 10#$HWC_M)*60 + (10#$LOC_S - 10#$HWC_S) ] regards, Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org