Click here to Skip to main content
14,386,384 members
   

C#

 
GeneralRe: Backing up a C# project Pin
OriginalGriff11-May-19 3:35
mveOriginalGriff11-May-19 3:35 
GeneralRe: Backing up a C# project Pin
BillWoodruff11-May-19 15:20
mveBillWoodruff11-May-19 15:20 
GeneralRe: Backing up a C# project Pin
Brian_TheLion13-May-19 15:02
MemberBrian_TheLion13-May-19 15:02 
GeneralRe: Backing up a C# project Pin
Dave Kreskowiak13-May-19 17:09
mveDave Kreskowiak13-May-19 17:09 
QuestionHow to read a Temperature for August and get the total Aveg just for 29 day instead 31 day ? Pin
Abdalla Ben Omran7-May-19 23:47
MemberAbdalla Ben Omran7-May-19 23:47 
AnswerRe: How to read a Temperature for August and get the total Aveg just for 29 day instead 31 day ? Pin
Gerry Schmitz8-May-19 0:09
mveGerry Schmitz8-May-19 0:09 
GeneralRe: How to read a Temperature for August and get the total Aveg just for 29 day instead 31 day ? Pin
Abdalla Ben Omran8-May-19 0:17
MemberAbdalla Ben Omran8-May-19 0:17 
AnswerRe: How to read a Temperature for August and get the total Aveg just for 29 day instead 31 day ? Pin
OriginalGriff8-May-19 0:21
mveOriginalGriff8-May-19 0:21 
You're making a rod for your own back here: an average is always the same:
average = sum of samples / number of samples

So what your code needs to do is sum the samples and count how many items you added to the sum.
That shouldn't have anything to do with the number of days in a month at all - because you have no guarantee that a sample has been taken every day during the month, regardless of whether the month is "complete yet".
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!

GeneralRe: How to read a Temperature for August and get the total Aveg just for 29 day instead 31 day ? Pin
Abdalla Ben Omran8-May-19 1:00
MemberAbdalla Ben Omran8-May-19 1:00 
GeneralRe: How to read a Temperature for August and get the total Aveg just for 29 day instead 31 day ? Pin
OriginalGriff8-May-19 1:05
mveOriginalGriff8-May-19 1:05 
GeneralRe: How to read a Temperature for August and get the total Aveg just for 29 day instead 31 day ? Pin
Abdalla Ben Omran8-May-19 1:15
MemberAbdalla Ben Omran8-May-19 1:15 
GeneralRe: How to read a Temperature for August and get the total Aveg just for 29 day instead 31 day ? Pin
OriginalGriff8-May-19 1:23
mveOriginalGriff8-May-19 1:23 
GeneralMessage Closed Pin
8-May-19 2:38
MemberAbdalla Ben Omran8-May-19 2:38 
GeneralRe: How to read a Temperature for August and get the total Aveg just for 29 day instead 31 day ? Pin
Abdalla Ben Omran8-May-19 2:48
MemberAbdalla Ben Omran8-May-19 2:48 
AnswerRe: How to read a Temperature for August and get the total Aveg just for 29 day instead 31 day ? Pin
Ralf Meier8-May-19 1:26
professionalRalf Meier8-May-19 1:26 
GeneralRe: How to read a Temperature for August and get the total Aveg just for 29 day instead 31 day ? Pin
Abdalla Ben Omran8-May-19 2:49
MemberAbdalla Ben Omran8-May-19 2:49 
GeneralRe: How to read a Temperature for August and get the total Aveg just for 29 day instead 31 day ? Pin
Gerry Schmitz8-May-19 7:01
mveGerry Schmitz8-May-19 7:01 
AnswerRe: How to read a Temperature for August and get the total Aveg just for 29 day instead 31 day ? Pin
CPallini8-May-19 0:13
mveCPallini8-May-19 0:13 
QuestionRe: How to read a Temperature for August and get the total Aveg just for 29 day instead 31 day ? Pin
Eddy Vluggen8-May-19 0:35
mveEddy Vluggen8-May-19 0:35 
AnswerRe: How to read a Temperature for August and get the total Aveg just for 29 day instead 31 day ? Pin
Abdalla Ben Omran8-May-19 0:53
MemberAbdalla Ben Omran8-May-19 0:53 
GeneralRe: How to read a Temperature for August and get the total Aveg just for 29 day instead 31 day ? Pin
Eddy Vluggen8-May-19 1:03
mveEddy Vluggen8-May-19 1:03 
AnswerRe: How to read a Temperature for August and get the total Aveg just for 29 day instead 31 day ? Pin
#realJSOP8-May-19 23:28
mve#realJSOP8-May-19 23:28 
GeneralRe: How to read a Temperature for August and get the total Aveg just for 29 day instead 31 day ? Pin
Richard MacCutchan8-May-19 23:55
mveRichard MacCutchan8-May-19 23:55 
GeneralRe: How to read a Temperature for August and get the total Aveg just for 29 day instead 31 day ? Pin
OriginalGriff9-May-19 1:18
mveOriginalGriff9-May-19 1:18 
GeneralRe: How to read a Temperature for August and get the total Aveg just for 29 day instead 31 day ? Pin
#realJSOP9-May-19 1:29
mve#realJSOP9-May-19 1:29 

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.