So müsste es ja eigentlich funktionieren...
Code:
// Close-Buy-Distance anpassen
// LotsBuy mal hundert:
double LBuy_Mh = LotsBuy * 100.0;
Print( "-LotsBuy x 100.0=",LBuy_Mh );
// Ergebnis mal Dist(GV)
double LBuyMh_Dist = LBuy_Mh * Dist;
Print( "-LotsBuyMh x Dist=",LBuyMh_Dist , "-Old Buy Dist=",Dist );
// Neuer Dist-Wert durch 100
Dist = LBuyMh_Dist / 100.0;
Print( "-New Buy Dist=",Dist );
Code:
// Close-Sel-Distance anpassen
// LotsSel mal hundert:
double LSel_Mh = LotsSel * 100.0;
Print( "-LotsSel x 100.0=",LSel_Mh );
// Ergebnis mal Dist(GV)
double LSelMh_Dist = LSel_Mh * Dist;
Print( "-LotsSelMh x Dist=",LSelMh_Dist , "-Old Sel Dist=",Dist );
// Neuer Dist-Wert durch 100
Dist = LSelMh_Dist / 100.0;
Print( "-New Sel Dist=",Dist );