Timeline for How to convert floating point number to integer?
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 16, 2021 at 10:38 | comment | added | Stéphane Chazelas | The only way ${float%%.*} could be different from ${float%.*} would be if $float contained more than one occurrence of .. That still gives you 1 for 1.99, the empty string for .12 and 2 for 2.2e9, so it doesn't help at all. Also remember that parameter expansions must be quoted in list contexts in Bourne-like shells. | |
| Oct 12, 2016 at 17:43 | review | Late answers | |||
| Oct 12, 2016 at 17:46 | |||||
| Oct 12, 2016 at 17:36 | history | edited | user147505 | CC BY-SA 3.0 | added 19 characters in body |
| Oct 12, 2016 at 17:33 | review | First posts | |||
| Oct 12, 2016 at 17:36 | |||||
| Oct 12, 2016 at 17:24 | history | answered | Jay Mayers | CC BY-SA 3.0 |