Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old July 3rd, 2008, 09:09 AM
Guddu's Avatar
Guddu Guddu is offline
Contributing User
ASP Free Frequenter (2500 - 2999 posts)
 
Join Date: Jul 2005
Location: Oxford UK
Posts: 2,977 Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 2 Months 1 Week 6 Days 10 h 19 m 28 sec
Reputation Power: 463
Xml stylesheet

hi
i m working on xml style sheey xsl.i m very new to this.
i m trying to convert a number like 1234546 to 1234.56.meant after 4 digits i want to put decimal.
below is my code
Code:
<xsl:value-of select="format-number(611802,'####.00')"/>


i m not getting my desire output.i tried all format .but still unable to find a solution.

THANKS
__________________
Nothing is Impossible bcoz IMPOSSIBLE itself says..
I M POSSIBLE........................
Be cool !!!!!!!!

Reply With Quote
  #2  
Old July 3rd, 2008, 10:11 AM
ChiefWigs1982's Avatar
ChiefWigs1982 ChiefWigs1982 is offline
Cunning Linguist
ASP Free Loyal (3000 - 3499 posts)
 
Join Date: Mar 2005
Location: I used to live at home, now I stay at the house
Posts: 3,358 ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner Folder
Time spent in forums: 1 Month 1 Week 3 Days 5 h 53 m 37 sec
Reputation Power: 291
Facebook
That's not what format-number is for - you want to look into
using the substring function.
__________________
Support requests via PM will be ignored!
Route of Queue | The General FAQ Thread | HOW TO POST A QUESTION

Sign up with Matched.co.uk and earn up to £15 per website every month!


Reply With Quote
  #3  
Old July 3rd, 2008, 10:19 AM
Guddu's Avatar
Guddu Guddu is offline
Contributing User
ASP Free Frequenter (2500 - 2999 posts)
 
Join Date: Jul 2005
Location: Oxford UK
Posts: 2,977 Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 2 Months 1 Week 6 Days 10 h 19 m 28 sec
Reputation Power: 463
hey chief after very long time.thanks a lot dear.but how using substring i can put decimal in the string.

Reply With Quote
  #4  
Old July 3rd, 2008, 11:09 AM
ChiefWigs1982's Avatar
ChiefWigs1982 ChiefWigs1982 is offline
Cunning Linguist
ASP Free Loyal (3000 - 3499 posts)
 
Join Date: Mar 2005
Location: I used to live at home, now I stay at the house
Posts: 3,358 ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner Folder
Time spent in forums: 1 Month 1 Week 3 Days 5 h 53 m 37 sec
Reputation Power: 291
Facebook
Did you do any research after I suggested using substring?

Use the concat function to join the 3 different parts of the string
together - it's hardly rocket science...
Comments on this post
Guddu agrees: too good in xsl also

Reply With Quote
  #5  
Old July 3rd, 2008, 11:23 AM
Guddu's Avatar
Guddu Guddu is offline
Contributing User
ASP Free Frequenter (2500 - 2999 posts)
 
Join Date: Jul 2005
Location: Oxford UK
Posts: 2,977 Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Guddu User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 2 Months 1 Week 6 Days 10 h 19 m 28 sec
Reputation Power: 463
okie this way
Code:
<xsl:value-of select="concat(substring($AccountCode,1,4),'.',substring($  AccountCode,5))"/>
Comments on this post
ChiefWigs1982 agrees!

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > Xml stylesheet


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway