Solved

AngularJS Currency fillter no cents (rookie question)

Posted on 2013-12-14
2
674 Views
Last Modified: 2013-12-14
Hi I have the Following

 <div><label>Assessed</label>: {{listingDetails.Assessed  | currency }}</div>

Works great except I get
$149,500.00

and need

$149,500

is there a better filter easy modification ? using Angular 1.07

Thanks
0
Comment
Question by:charlesbaldo
2 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 39718799
Test page : http://jsfiddle.net/2DphN/

<div><label>Assessed</label>: {{(listingDetails.Assessed | currency).split(".")[0]}}</div>

Open in new window

0
 

Author Closing Comment

by:charlesbaldo
ID: 39719242
Perfect
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn how to dynamically set the form action using jQuery.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question