Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to format a number with an implied decimal Pin
Steve Messer17-Jul-08 9:11
Steve Messer17-Jul-08 9:11 
GeneralRe: How to format a number with an implied decimal Pin
Pete O'Hanlon17-Jul-08 10:27
mvePete O'Hanlon17-Jul-08 10:27 
GeneralRe: How to format a number with an implied decimal Pin
Steve Messer17-Jul-08 10:32
Steve Messer17-Jul-08 10:32 
GeneralRe: How to format a number with an implied decimal Pin
Pete O'Hanlon17-Jul-08 10:39
mvePete O'Hanlon17-Jul-08 10:39 
GeneralRe: How to format a number with an implied decimal Pin
PIEBALDconsult17-Jul-08 14:49
mvePIEBALDconsult17-Jul-08 14:49 
GeneralRe: How to format a number with an implied decimal Pin
Steve Messer17-Jul-08 18:09
Steve Messer17-Jul-08 18:09 
GeneralRe: How to format a number with an implied decimal Pin
PIEBALDconsult18-Jul-08 13:48
mvePIEBALDconsult18-Jul-08 13:48 
GeneralRe: How to format a number with an implied decimal Pin
Steve Messer18-Jul-08 17:07
Steve Messer18-Jul-08 17:07 
The point is that the format specifier "000000%" multiplies by 100 and adds the percent sign.

So, given 15.00 the result of applying the above format string yields 001500%.
The percent sign is undesirable and needs to be striped out.

So the method I mention always strips out the % if it exists as I will never need to send a
percentage. So, I have accomplished my needs by still allowing standard formatting to be
used.

I could have created a custom format specifier "000000i", and then in my number processing
method look for i and then use implied decimal formatting.
GeneralRe: How to format a number with an implied decimal Pin
PIEBALDconsult19-Jul-08 3:34
mvePIEBALDconsult19-Jul-08 3:34 
GeneralRe: How to format a number with an implied decimal Pin
Steve Messer19-Jul-08 13:49
Steve Messer19-Jul-08 13:49 
AnswerRe: How to format a number with an implied decimal Pin
SilimSayo17-Jul-08 9:26
SilimSayo17-Jul-08 9:26 
GeneralRe: How to format a number with an implied decimal Pin
Steve Messer17-Jul-08 9:43
Steve Messer17-Jul-08 9:43 
GeneralRe: How to format a number with an implied decimal Pin
darkelv17-Jul-08 17:08
darkelv17-Jul-08 17:08 
GeneralRe: How to format a number with an implied decimal Pin
Steve Messer17-Jul-08 18:12
Steve Messer17-Jul-08 18:12 
GeneralRe: How to format a number with an implied decimal Pin
darkelv17-Jul-08 19:23
darkelv17-Jul-08 19:23 
GeneralRe: How to format a number with an implied decimal Pin
Steve Messer18-Jul-08 3:35
Steve Messer18-Jul-08 3:35 
QuestionDragging and dropping a TreeNode onto a ListBox Pin
Jordanwb17-Jul-08 8:29
Jordanwb17-Jul-08 8:29 
AnswerRe: Dragging and dropping a TreeNode onto a ListBox Pin
TheFM23417-Jul-08 8:45
TheFM23417-Jul-08 8:45 
GeneralRe: Dragging and dropping a TreeNode onto a ListBox Pin
Jordanwb17-Jul-08 9:18
Jordanwb17-Jul-08 9:18 
QuestionMail attachments Pin
damianrda17-Jul-08 8:05
damianrda17-Jul-08 8:05 
QuestionWMI Question Pin
#realJSOP17-Jul-08 6:11
mve#realJSOP17-Jul-08 6:11 
AnswerRe: WMI Question Pin
half-life17-Jul-08 6:21
half-life17-Jul-08 6:21 
AnswerRe: WMI Question Pin
Uros Calakovic17-Jul-08 6:35
Uros Calakovic17-Jul-08 6:35 
AnswerRe: WMI Question Pin
Luc Pattyn17-Jul-08 8:33
sitebuilderLuc Pattyn17-Jul-08 8:33 
GeneralRe: WMI Question Pin
#realJSOP17-Jul-08 8:53
mve#realJSOP17-Jul-08 8:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.