Click here to Skip to main content
15,891,763 members
Home / Discussions / C#
   

C#

 
QuestionHow to format a number with an implied decimal Pin
Steve Messer17-Jul-08 8:46
Steve Messer17-Jul-08 8:46 
AnswerRe: How to format a number with an implied decimal Pin
PIEBALDconsult17-Jul-08 9:05
mvePIEBALDconsult17-Jul-08 9:05 
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 
The contrains aren't silly they are provided by the client.

My problem comes in trying to make a tool generic enough to provide
all clients with their needs.

Again this method would work if all clients wanted to use an assumed decimal point.

In the end I ended up using the format string "000000%" which multiplies by one hundred thus
given me the assumed decimal place. Then in my ProcessNumber method I remove the "%" if it exists.
The "%" will only exist if I am using the assumed decimal approach and I can still
use standard formatting for all clients.

Problem solved.
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 
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 

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.