Question: I have a standard menu using ul and li tags. And in my database, I have a table Users with a field 'certificate' and depending the value of this 'certificate', the user will see or not some items of the menu.

I was reading some texts and I think I will have to use `ActionFilters`. Is this right?

So, how can I render different menus depending which user is accessing?

thanks!!

Answer: 
.toFixed converts the object from a Number to a String.

Leave the full values in place and only convert using .toFixed at the very end

```
$(".total").text(total.toFixed(2));

```

Alternatively, convert the string back to a number.

```
total = total + + tmp;

```
Just FYI, there is an excellent mathematical aggregation plugin for jQuery: [jQuery Calculation](http://www.pengoworks.com/workshop/jquery/calculation/calculation.plugin.htm)

Using that plugin may also indirectly solve your issue.

It's usage would reduce your script to:

```
$('.total').text($('.amount').sum());

```