paulk-asert commented on PR #2152: URL: https://github.com/apache/groovy/pull/2152#issuecomment-2661947443
Actually, I just remembered String::formatted. It allows: ``` def nums = (2..7).collect { 1 / it } assert nums.collect('%.2f'::formatted) == ['0.50', '0.33', '0.25', '0.20', '0.17', '0.14'] ``` Only for JDK15+, but I can live with that. I'll close the PR/issue. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@groovy.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org