question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

set Report’s rounding_digits in compare

See original GitHub issue

Hi,

compare does not have a rounding_digits argument and thus always uses the default from Report (which is 4). Why is that?

Also, would you like to add an option in Report to print results as percentages rather than ratios ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
PaulLernercommented, Feb 15, 2022

How thoughtful of you 😃

1reaction
AmenRacommented, Feb 8, 2022

In the meantime, mind that you can change the Report parameter before printing: report.rounding_digits = 3

Read more comments on GitHub >

github_iconTop Results From Across the Web

KB42178: Metric not calculating at correct level or cutting off ...
Metric not calculating at correct level or cutting off and rounding digits in calculations. SYMPTOM: When using a numeric metric on a report...
Read more >
SQL Round Function in SQL Server: 5 Useful Tips
Use SQL ROUND on the Same Data Source for Consistency​​ All these three reports will treat cents or decimal parts as immaterial. So,...
Read more >
Round a double to 2 decimal places [duplicate] - Stack Overflow
Here's an utility that rounds (instead of truncating) a double to specified number of decimal places. For example: round(200.3456, 2); // returns 200.35 ......
Read more >
Round a number to the decimal places I want - Microsoft Support
Round a number to the decimal places you want by using formatting and how to use the ROUND function in a formula to...
Read more >
round() function | Help - Zoho Deluge
The precision(number of rounding digits) to which the number is to be rounded. When the value is positive: A positive value will round...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found