Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
AnswerRe: Polynomial finder Pin
OriginalGriff22-Dec-09 22:11
mveOriginalGriff22-Dec-09 22:11 
QuestionFont and Size setting in Datagridview Pin
M Riaz Bashir22-Dec-09 20:54
M Riaz Bashir22-Dec-09 20:54 
AnswerRe: Font and Size setting in Datagridview Pin
MatthysDT22-Dec-09 22:27
MatthysDT22-Dec-09 22:27 
QuestionAccess Kernel-Mode dll Pin
AB_dev22-Dec-09 20:45
AB_dev22-Dec-09 20:45 
AnswerRe: Access Kernel-Mode dll Pin
Roger Wright22-Dec-09 21:09
professionalRoger Wright22-Dec-09 21:09 
GeneralRe: Access Kernel-Mode dll Pin
AB_dev22-Dec-09 21:15
AB_dev22-Dec-09 21:15 
Questionno rounds Pin
Kenny Chen22-Dec-09 20:40
Kenny Chen22-Dec-09 20:40 
AnswerRe: no rounds Pin
#realJSOP23-Dec-09 0:25
mve#realJSOP23-Dec-09 0:25 
There are a lot of solutions to your problem, but you didn't tell us whether or not you're displaying the number, or merely want to omit the fractional part from further calculations. Assuming you just want to display, it, do it this way:

string cString = Convert.ToInt32(c).ToString();


If you want to change the actual value, you can use Math.Floor, or even Convert.ToInt32 (I think).

.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

AnswerRe: no rounds Pin
Jordon4Kraftd23-Dec-09 13:09
Jordon4Kraftd23-Dec-09 13:09 
AnswerRe: no rounds Pin
Kenny Chen23-Dec-09 14:37
Kenny Chen23-Dec-09 14:37 
QuestionCheckbox & CheckedChanged event... really? Pin
BDJones22-Dec-09 14:00
BDJones22-Dec-09 14:00 
AnswerRe: Checkbox & CheckedChanged event... really? Pin
Luc Pattyn22-Dec-09 15:22
sitebuilderLuc Pattyn22-Dec-09 15:22 
GeneralRe: Checkbox & CheckedChanged event... really? Pin
BDJones23-Dec-09 4:33
BDJones23-Dec-09 4:33 
AnswerRe: Checkbox & CheckedChanged event... really? Pin
J4amieC22-Dec-09 21:38
J4amieC22-Dec-09 21:38 
GeneralRe: Checkbox & CheckedChanged event... really? Pin
BDJones23-Dec-09 4:32
BDJones23-Dec-09 4:32 
QuestionRe: Checkbox & CheckedChanged event... really? Pin
BDJones23-Dec-09 5:25
BDJones23-Dec-09 5:25 
QuestionAdd Object to RichTextBox Pin
dataminers22-Dec-09 13:04
dataminers22-Dec-09 13:04 
AnswerRe: Add Object to RichTextBox Pin
Eddy Vluggen22-Dec-09 13:36
professionalEddy Vluggen22-Dec-09 13:36 
QuestionVisual Studio doesn't detect invalid parameter type errors? Pin
Xargo22-Dec-09 12:07
Xargo22-Dec-09 12:07 
AnswerRe: Visual Studio doesn't detect invalid parameter type errors? Pin
#realJSOP23-Dec-09 0:30
mve#realJSOP23-Dec-09 0:30 
GeneralRe: Visual Studio doesn't detect invalid parameter type errors? Pin
Xargo23-Dec-09 2:50
Xargo23-Dec-09 2:50 
GeneralRe: Visual Studio doesn't detect invalid parameter type errors? Pin
#realJSOP23-Dec-09 8:16
mve#realJSOP23-Dec-09 8:16 
GeneralRe: Visual Studio doesn't detect invalid parameter type errors? Pin
Xargo25-Dec-09 4:44
Xargo25-Dec-09 4:44 
QuestionCapicom publish error Pin
BDJones22-Dec-09 10:45
BDJones22-Dec-09 10:45 
QuestionHost ComboBox In DataGridView Pin
Kevin Marois22-Dec-09 10:38
professionalKevin Marois22-Dec-09 10:38 

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.