プレイ日記
mystman12 mystman12
So let me get this straight... The sign of 0 is 0. Not positive or negative, just 0. And the CVX variable is equal to 0. So how is the sign of CVX equal to 1?! Computers. Sometimes their amazing, and sometimes... This happens. :P
2そうだね
プレイ済み
返信[1]
親投稿
こうやま kouyama1435
Read help of "FORMAT$()".
1そうだね
未プレイ
返信[2]
親投稿
mystman12 mystman12
That was exactly what I needed, thank you so much!
0そうだね
プレイ済み
返信[3]
親投稿
mystman12 mystman12
Whoops, meant "they're" in the original post, not "their"!
2そうだね
プレイ済み
返信[4]
親投稿
Ed CPFace
Maybe there's some weird rounding error in your example? I got it to work fine.
0そうだね
プレイ済み
返信[5]
親投稿
Ed CPFace
An interesting test in that situation would be "PRINT CVX==0".
0そうだね
プレイ済み
返信[6]
親投稿
mystman12 mystman12
Well, it wasn't quite like that, CVX was being changed quite a bit in my program. After the program was run, even though it ended up as 0, it still rounded to 1. My pic was just me checking each of the variables to see what was going on, and I was kind of dumbfounded when I realized it wasn't me, but the computer that was messing up!
0そうだね
プレイ済み
返信[7]
親投稿
12Me21 12Me21
it's possible that c was 0.00000001 and it was rounded down when displayed
0そうだね
プレイ済み