|
| |
|
|
adam2804
Posts: 34 Joined: 6/6/2006 Status: offline
|
Thousand Separator - 8/2/2006 9:51:47
Hello, Has anyone made use of thousand separators for numbers? I understand how to cast the number to MONEY to add thousand separators, however I'm left with two decimal places (e.g. .00) how can I trim this off? Here's what I'm using at the moment: CAST(CONVERT (VARCHAR, CAST(SUM(B.Sheets) AS MONEY), 1) AS VARCHAR) Any improvements on this would be gratefully recieved. Thanks, Adam
|
|
|
|
adam2804
Posts: 34 Joined: 6/6/2006 Status: offline
|
RE: Thousand Separator - 8/2/2006 11:41:54
Thanks for the reply, Did you mean that the number should be put through a FormatNumber function in FrontPage, through VB? I take it you wouldn't recommend doing it dircetly in the query with about 5 CAST's, CONVERT's and TRIM's? What was that GroupDigits part that you mentioned? How do you use that? Thanks, Adam
|
|
|
|
rdouglass
Posts: 9280 From: Biddeford, ME USA Status: offline
|
RE: Thousand Separator - 8/3/2006 10:56:49
quote:
What was that GroupDigits part that you mentioned? How do you use that? All that was in the link I posted.
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|