Question: I am trying to always redirect people to 

```
https://www.somedomain.com/URL 

```

when they come in on a non secure port. This is because my SSL is for this url. 

When someone goes to <http://www.somedomain.com> they get sent to 

```
http://www.www.somedomain.com

```

Here is the htaccess rewrite that i am trying:

```
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://www.%{HTTP_HOST}%{REQUEST_URI}

```

Edit:

I am using a cPanel server, so making additional hosts is not going to work.

Answer: 
Adding floating numbers in correct way

```
 $scope.Total = parseFloat($scope.firstValue) + parseFloat($scope.secondValue);
 $scope.Total = parseFloat($scope.Total.toFixed(2));

```

The $scope.Total now will display correctly in the view if binding with `ng-model` is applied
for example if you have 

```
$scope.firstValue = 10.01;
$scope.firstValue = 0.7;

```

`$scope.Total = parseFloat($scope.firstValue) + parseFloat($scope.secondValue);`

The variable `$scope.Total` will be `10.709999999999999` and this is not correct!
Adding with parseFloat will not be enough for a correct value.
But if you apply 

`$scope.Total = parseFloat($scope.Total.toFixed(2));`

The value will result correctly: `$scope.Total = 10.71`

Be careful will floating point numbers in javascript
I advise you to change the type of your input to "number", then, you will not need to parse it, angular will convert it automatically to interger. I did it and it works, without a scope, but only to declare your {{total}}