Click here to Skip to main content
16,006,479 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Any assembly geeks out there? Pin
Chris Richardson13-Jan-03 10:30
Chris Richardson13-Jan-03 10:30 
AnswerRe: Any assembly geeks out there? Pin
Chris Losinger13-Jan-03 10:54
professionalChris Losinger13-Jan-03 10:54 
GeneralRe: Any assembly geeks out there? Pin
Chris Richardson13-Jan-03 11:48
Chris Richardson13-Jan-03 11:48 
GeneralRe: Any assembly geeks out there? Pin
Tim Smith13-Jan-03 12:04
Tim Smith13-Jan-03 12:04 
GeneralRe: Any assembly geeks out there? Pin
Chris Richardson13-Jan-03 12:13
Chris Richardson13-Jan-03 12:13 
AnswerRe: Any assembly geeks out there? Pin
nde_plume13-Jan-03 11:48
nde_plume13-Jan-03 11:48 
GeneralWindow position Pin
electronicman_x13-Jan-03 8:18
electronicman_x13-Jan-03 8:18 
Generaltext formatting question. Pin
Maximilien13-Jan-03 8:06
Maximilien13-Jan-03 8:06 
Good Formating everyone !


I need to set the string length of a float number :

for example, I have this number :
345.22123123, and the length is 4, so the output will be 345.2, no leader zero, or trunc/round at the end, it's only outputing the number; if the lenght is smaller than the representation of the number, I manage this already.

What's the magic formula for this ?

MSDN says :
%[flags] [width] [.precision] [{h | l | I64 | L}]type


But I'm not sure what width or precision to set, since the width is the minimum length, and the precision is what's after the decimal.

Thanks.

Clueless Max.
GeneralForget it, I found it ... Pin
Maximilien13-Jan-03 8:11
Maximilien13-Jan-03 8:11 
GeneralChanging MessageBox button captions. Pin
rghin13-Jan-03 7:23
rghin13-Jan-03 7:23 
GeneralRe: Changing MessageBox button captions. Pin
Navin13-Jan-03 7:23
Navin13-Jan-03 7:23 
GeneralRe: Changing MessageBox button captions. Pin
Jim A. Johnson13-Jan-03 7:34
Jim A. Johnson13-Jan-03 7:34 
GeneralRe: Changing MessageBox button captions. Pin
Nish Nishant13-Jan-03 8:46
sitebuilderNish Nishant13-Jan-03 8:46 
GeneralGetting Hardware Profile in Win9x Pin
Jim Hewitt13-Jan-03 7:11
Jim Hewitt13-Jan-03 7:11 
Generalspawning of process Pin
wavk13-Jan-03 6:54
susswavk13-Jan-03 6:54 
GeneralRe: spawning of process Pin
Navin13-Jan-03 7:25
Navin13-Jan-03 7:25 
GeneralAdding right click menu to CDialogBar Pin
Aaron Schaefer13-Jan-03 6:56
Aaron Schaefer13-Jan-03 6:56 
GeneralSaving window state of docking window Pin
Aaron Schaefer13-Jan-03 6:46
Aaron Schaefer13-Jan-03 6:46 
GeneralRe: Saving window state of docking window Pin
Maximilien13-Jan-03 6:56
Maximilien13-Jan-03 6:56 
GeneralRe: Saving window state of docking window Pin
Aaron Schaefer13-Jan-03 7:38
Aaron Schaefer13-Jan-03 7:38 
Generalrichedit control--AfxInitRichEdit Pin
ns13-Jan-03 6:28
ns13-Jan-03 6:28 
GeneralRe: richedit control--AfxInitRichEdit Pin
Gary Kirkham13-Jan-03 6:57
Gary Kirkham13-Jan-03 6:57 
Generalthanks! Pin
ns13-Jan-03 7:03
ns13-Jan-03 7:03 
GeneralWrapping around font in CEdit Pin
ns13-Jan-03 6:03
ns13-Jan-03 6:03 
GeneralRe: Wrapping around font in CEdit Pin
Chris Meech13-Jan-03 7:10
Chris Meech13-Jan-03 7:10 

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.