Click here to Skip to main content
15,899,754 members
Home / Discussions / C#
   

C#

 
QuestionRe: GA genetic algorithms Pin
rani_saleh3-Apr-06 3:03
rani_saleh3-Apr-06 3:03 
QuestionOleDbException:"no value given for one or more required parameters" Pin
MohammadAmiry2-Apr-06 10:07
MohammadAmiry2-Apr-06 10:07 
GeneralRe: OleDbException:"no value given for one or more required parameters" Pin
Guffa2-Apr-06 12:26
Guffa2-Apr-06 12:26 
Questionhow to start a messenger project ?? Pin
abdelhameed812-Apr-06 9:59
abdelhameed812-Apr-06 9:59 
AnswerRe: how to start a messenger project ?? Pin
CWIZO2-Apr-06 20:45
CWIZO2-Apr-06 20:45 
Questionmore precision in division by C# is possible? Pin
luca_la2-Apr-06 9:37
luca_la2-Apr-06 9:37 
AnswerRe: more precision in division by C# is possible? Pin
Guffa2-Apr-06 12:22
Guffa2-Apr-06 12:22 
GeneralRe: more precision in division by C# is possible? Pin
luca_la2-Apr-06 14:40
luca_la2-Apr-06 14:40 
Passox is the value returned: xpp - x1 (Passox translated from italian is step of x).
The function, i use Passox in, receives Passox as double; in this fuction i cast Passox from double to int, but in a temp variable: so i don't change the double var Passox (i do:
Xtmp = (int)Passox ) and so it's no problem of course!
The error for example is this:
start to P1(262, 2), end to P2(772, 309);
my final value is Pend(772, 308.99999999999886) -> after int-cast become Pend(772, 308) but it must be Pend(772, 309)!

I calculated step of y (i had to work with it too) by my scientific calculator (step of x and step of y have the same equation but for step of y i have that example so i report it!); the value is:
m = 1.661237785<-- it's work ok! Pend(772, 309.00000001300782)-> after int-cast become
Pend(772, 309)

value by C# is:
m = 1.6612377850162867<-- more precision but don't work as you can see up! This m by C# > m by
scientific calculator but the y of Pend by C# is less...

I write about only last point of my line but i need precision in all points of line... it's possible? I thinked to do:
PrecisionLost = 309 (y i want) - 308.99999999999886 (y i have);
Passoy = Passoy + PrecisionLost; (or, as the same, Passox = Passox + PrecisionLost)
but if someone knows another solution, i prefer very much! i'm sorry for me but i need maximum precision..
Thanks a lot,
luca
AnswerRe: more precision in division by C# is possible? Pin
Guffa2-Apr-06 19:56
Guffa2-Apr-06 19:56 
GeneralRe: more precision in division by C# is possible? Pin
luca_la2-Apr-06 23:21
luca_la2-Apr-06 23:21 
AnswerRe: more precision in division by C# is possible? Pin
Guffa4-Apr-06 2:37
Guffa4-Apr-06 2:37 
GeneralRe: more precision in division by C# is possible? Pin
luca_la7-Apr-06 3:22
luca_la7-Apr-06 3:22 
QuestionGetting an object's bytes Pin
martin_hughes2-Apr-06 4:30
martin_hughes2-Apr-06 4:30 
AnswerRe: Getting an object's bytes Pin
User 66582-Apr-06 4:42
User 66582-Apr-06 4:42 
AnswerRe: Getting an object's bytes Pin
Luis Alonso Ramos2-Apr-06 8:52
Luis Alonso Ramos2-Apr-06 8:52 
QuestionBrowsing to a file in forms Pin
naglbitur2-Apr-06 3:53
naglbitur2-Apr-06 3:53 
AnswerRe: Browsing to a file in forms Pin
User 66582-Apr-06 4:14
User 66582-Apr-06 4:14 
GeneralRe: Browsing to a file in forms Pin
naglbitur2-Apr-06 5:58
naglbitur2-Apr-06 5:58 
QuestionMSVS Designer Error Pin
Kordzik2-Apr-06 1:07
Kordzik2-Apr-06 1:07 
QuestionMS ObjectSpaces Pin
Varun Jain 7862-Apr-06 0:21
Varun Jain 7862-Apr-06 0:21 
QuestionSend more than 1024bytes with sockets? Pin
Erikerikerikerikerassa2-Apr-06 0:16
Erikerikerikerikerassa2-Apr-06 0:16 
AnswerRe: Send more than 1024bytes with sockets? Pin
leppie2-Apr-06 8:08
leppie2-Apr-06 8:08 
GeneralRe: Send more than 1024bytes with sockets? Pin
Erikerikerikerikerassa3-Apr-06 2:14
Erikerikerikerikerassa3-Apr-06 2:14 
QuestionDateTime parse help Pin
eggie51-Apr-06 23:00
eggie51-Apr-06 23:00 
AnswerRe: DateTime parse help Pin
mav.northwind2-Apr-06 0:11
mav.northwind2-Apr-06 0:11 

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.