Skip to content

Commit

Permalink
Increase precision of utils in op profile from 1 decimal point to 2
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 625102288
  • Loading branch information
zzzaries authored and copybara-github committed Apr 15, 2024
1 parent 14cde63 commit acb90ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/app/common/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ export function percent(fraction: number, defaultValueIfNull = '-'): string {
if (fraction < 0.00001) {
return '0.0%';
} else {
// Round to 1 decimal place.
return `${(fraction * 100).toFixed(1)}%`;
// Round to 2 decimal place.
return `${(fraction * 100).toFixed(2)}%`;
}
}

Expand Down

0 comments on commit acb90ff

Please sign in to comment.