Project

General

Profile

« Previous | Next » 

Revision 9544

lib/sh/util.sh: added float_set_min()

View differences:

util.sh
155 155

  
156 156
float+int() { echo "$(($(int_part "$1")+$2))$(dec_suffix "$1")"; }
157 157

  
158
float_set_min() { if (($(int_part $1) >= $2)); then echo $1; else echo $2; fi; }
158 159

  
160

  
159 161
#### strings
160 162

  
161 163
repeat() # usage: str=... n=... repeat

Also available in: Unified diff