Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>New document</title>
<style type="text/css">
div{
width: 55px;
height: 25px;
border: 1px black solid;
text-align:center;
float:left;
}
.bare{
border: 0px white;
}
</style>
</head>
<body>
<div class="bare">price</div><div id="price">45.87</div>
<div id="points"></div><div class="bare">points</div>
<script type="text/javascript">
var price = document.getElementById("price").innerHTML;
var points = Math.floor(price);
document.getElementById("points").innerHTML = points;
</script>
</body>
</html>
Please mark your posts as solved. In the message editor next to the title is a dropdown to do this. Thank You.