round to two float precision
This commit is contained in:
parent
983d2b9ce7
commit
5351bcb15d
@ -42,7 +42,7 @@ class HeatingInformation extends React.Component<HeatingRestcontollerprops> {
|
|||||||
<ListItem>
|
<ListItem>
|
||||||
<ListItemText
|
<ListItemText
|
||||||
primary="Gesammte Heizdauer / Prozentuelle Einschaltzeit"
|
primary="Gesammte Heizdauer / Prozentuelle Einschaltzeit"
|
||||||
secondary={stringifyTime(props.data.totalheattime) + ' / ' + props.data.heattimepercent * 100 + '%'}
|
secondary={stringifyTime(props.data.totalheattime) + ' / ' + (props.data.heattimepercent * 100).toFixed(2) + '%'}
|
||||||
/>
|
/>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
<ListItem>
|
<ListItem>
|
||||||
|
Loading…
Reference in New Issue
Block a user