Solved

AngularJS Currency fillter no cents (rookie question)

Posted on 2013-12-14
2
671 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

770 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