Click here to Skip to main content

C#

    RSS: RSS Feed
Home > Forums > C#

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
Questioncodeproject template empty PinmemberRassler487:53 20 Nov '09  
AnswerRe: codeproject template empty PinmemberRichard MacCutchan8:16 20 Nov '09  
GeneralRe: codeproject template empty PinmemberRassler4821:49 20 Nov '09  
GeneralRe: codeproject template empty PinmemberRichard MacCutchan22:13 20 Nov '09  
GeneralRe: codeproject template empty PinmemberRassler486:37 21 Nov '09  
Questionrequest: fixing a codeproject programm Pinmemberno_idea7:40 20 Nov '09  
AnswerRe: request: fixing a codeproject programm PinmvpDaveyM699:18 20 Nov '09  
Normally I would say you should ask in the article's forum but the author doesn't seem to respond to messages there.
 
THe first problem is because the Math.Abs function returns an int so the Floor method doesn't know which overload to use. The easy way around this is to cast the result to a deciaml or double depending on your needs:
redwx=(int)Math.Floor((decimal)(Math.Abs((int)Math.Log10(lox))));
 
I don't get the second error at all, if I remove the default Program.cs and replace it with the MainFile.cs all works perfectly.
 
Dave

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Why are you using VB6? Do you hate yourself? (Christian Graus)

GeneralRe: request: fixing a codeproject programm Pinmemberno_idea11:16 20 Nov '09  
GeneralRe: request: fixing a codeproject programm PinmvpDaveyM6917:29 20 Nov '09  
GeneralRe: request: fixing a codeproject programm Pinmemberdojohansen11:50 23 Nov '09  
QuestionAlter table in dataset Pingroupdaniel kuperberg7:36 20 Nov '09  
AnswerRe: Alter table in dataset Pinmemberdojohansen11:53 23 Nov '09  
Questionbetter way to make function returns PinmembernetJP12L7:13 20 Nov '09  
AnswerRe: better way to make function returns Pinmemberstancrm7:15 20 Nov '09  
GeneralRe: better way to make function returns PinmembernetJP12L7:28 20 Nov '09  
GeneralRe: better way to make function returns [modified] PinmemberSaksida Bojan7:34 20 Nov '09  
GeneralRe: better way to make function returns PinmembernetJP12L7:50 20 Nov '09  
GeneralRe: better way to make function returns PinmemberSaksida Bojan7:59 20 Nov '09  
AnswerRe: better way to make function returns Pinmember0x3c07:38 20 Nov '09  
AnswerRe: better way to make function returns Pinmembermusefan8:39 20 Nov '09  
GeneralRe: better way to make function returns PinmembernetJP12L9:34 20 Nov '09  
AnswerRe: better way to make function returns Pinmemberdojohansen11:59 23 Nov '09  
QuestionStream closes while reading a socket Pinmemberjoana.simoes6:11 20 Nov '09  
AnswerRe: Stream closes while reading a socket PinmemberPaulo Zemek6:57 20 Nov '09  
GeneralRe: Stream closes while reading a socket Pinmemberjoana.simoes7:19 20 Nov '09  

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

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


Advertise | Privacy | Mobile
Web03 | 2.5.120210.1 | Last Updated 13 Feb 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid