PHP-CLI-Progress-Bar icon indicating copy to clipboard operation
PHP-CLI-Progress-Bar copied to clipboard

update() only accepts integers

Open tsmgeek opened this issue 10 years ago • 2 comments

update() only accepts integers while outputting progress bar uses number_format($percent,2) which gives it two decimal places.

tsmgeek avatar Nov 17 '14 21:11 tsmgeek

I don't really understand this issue. Can you please provide a scenario ? Thanks.

guiguiboy avatar Nov 19 '14 12:11 guiguiboy

you are unable to pass a value such as 12.5 into update() as you check if the value is_int() and reject it, if you display the progress with 2 decimal places you should probably have this changed.

tsmgeek avatar Nov 19 '14 22:11 tsmgeek