Issue
This string returns the value: Pressure 770.3157279 mm
<div class="info">Pressure {{info.main.pressure * 0.750064}} mm </div>
How do I make the number become an integer and get:
Pressure 770 mm
Solution
You can use parseInt
<div class="info">Pressure {{ parseInt(info.main.pressure * 0.750064) }} mm </div>
Answered By - BTL Answer Checked By - David Goodson (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.