We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In KotlinPoet 1.17.0 under Kotlin 2.0.0 the code...
listOf(1.0, 0.1, 0.01, 0.001, 0.0001, 0.00001, 0.000001).forEach{ val cb = CodeBlock.of("%L", it).toString() println("$it -> $cb") }
... results in the following output:
1.0 -> 1.0 0.1 -> 0.1 0.01 -> 0.01 0.001 -> 0.001 1.0E-4 -> 0.0001 1.0E-5 -> 0.0 1.0E-6 -> 0.0
So for 0.00001 and smaller values, the double value becomes 0.0
The text was updated successfully, but these errors were encountered:
fix square#1919 Small double values are set to zero in %L translation
5090e22
a162882
No branches or pull requests
In KotlinPoet 1.17.0 under Kotlin 2.0.0 the code...
... results in the following output:
So for 0.00001 and smaller values, the double value becomes 0.0
The text was updated successfully, but these errors were encountered: