Click here to Skip to main content
15,894,540 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: CCC 8/9/14 Pin
Dalek Dave7-Sep-14 22:57
professionalDalek Dave7-Sep-14 22:57 
GeneralRe: CCC 8/9/14 Pin
chriselst7-Sep-14 23:08
professionalchriselst7-Sep-14 23:08 
GeneralRe: CCC 8/9/14 Pin
Nagy Vilmos7-Sep-14 22:58
professionalNagy Vilmos7-Sep-14 22:58 
GeneralRe: CCC 8/9/14 Pin
Motor Viper7-Sep-14 23:36
professionalMotor Viper7-Sep-14 23:36 
QuestionRounding Pin
PaulowniaK7-Sep-14 16:59
PaulowniaK7-Sep-14 16:59 
GeneralRe: Rounding Pin
PIEBALDconsult7-Sep-14 17:09
mvePIEBALDconsult7-Sep-14 17:09 
GeneralRe: Rounding Pin
PaulowniaK7-Sep-14 18:02
PaulowniaK7-Sep-14 18:02 
AnswerRe: Rounding Pin
Agent__0077-Sep-14 17:09
professionalAgent__0077-Sep-14 17:09 
I am not sure what you mean by "a phrase", but there's an overload [^] for Math.Round() method to tweak this behavior.

[EDIT]
Sorry, didn't notice:
PaulowniaK wrote:
150 gets rounded to 100.
160 gets rounded to 200.
What type of application are you trying to write? Confused | :confused:
[/EDIT]
Whether I think I can, or think I can't, I am always bloody right!


modified 7-Sep-14 23:16pm.

GeneralRe: Rounding Pin
PaulowniaK7-Sep-14 18:06
PaulowniaK7-Sep-14 18:06 
GeneralRe: Rounding Pin
Steve Wellens7-Sep-14 18:35
Steve Wellens7-Sep-14 18:35 
GeneralRe: Rounding Pin
Agent__0077-Sep-14 18:44
professionalAgent__0077-Sep-14 18:44 
GeneralRe: Rounding Pin
Duncan Edwards Jones7-Sep-14 22:08
professionalDuncan Edwards Jones7-Sep-14 22:08 
AnswerRe: Rounding Pin
Jörgen Andersson7-Sep-14 18:37
professionalJörgen Andersson7-Sep-14 18:37 
GeneralRe: Rounding Pin
PaulowniaK7-Sep-14 19:41
PaulowniaK7-Sep-14 19:41 
GeneralRe: Rounding Pin
DaveAuld7-Sep-14 19:55
professionalDaveAuld7-Sep-14 19:55 
GeneralRe: Rounding Pin
Jörgen Andersson7-Sep-14 20:00
professionalJörgen Andersson7-Sep-14 20:00 
GeneralRe: Rounding Pin
Gary Wheeler8-Sep-14 0:24
Gary Wheeler8-Sep-14 0:24 
AnswerRe: Rounding Pin
User 592417-Sep-14 18:39
User 592417-Sep-14 18:39 
GeneralRe: Rounding Pin
PaulowniaK7-Sep-14 20:13
PaulowniaK7-Sep-14 20:13 
AnswerRe: Rounding Pin
BillWoodruff7-Sep-14 18:59
professionalBillWoodruff7-Sep-14 18:59 
AnswerRe: Rounding Pin
JMK-NI7-Sep-14 19:33
professionalJMK-NI7-Sep-14 19:33 
GeneralRe: Rounding Pin
DaveAuld7-Sep-14 19:37
professionalDaveAuld7-Sep-14 19:37 
GeneralRe: Rounding Pin
JMK-NI7-Sep-14 19:39
professionalJMK-NI7-Sep-14 19:39 
GeneralRe: Rounding Pin
DaveAuld7-Sep-14 19:46
professionalDaveAuld7-Sep-14 19:46 
GeneralRe: Rounding Pin
BillWoodruff7-Sep-14 22:47
professionalBillWoodruff7-Sep-14 22:47 

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.