Hallo!
Ich brauche nochmal Hilfe.
Ich hoffe Sie können mir sagen, inwiefern ich meinen Gleichung abändern muss.
Und zwar werden meine Zahlen jetzt zu stark gerundet. Wenn man z.B. 1,50 ausgibt müsste bei einer Preiserhöhung von 10% ja der neue Preis bei 1,65 liegen. Nun wird mir aber 1,70 angezeigt und eine Preiserhöhung von 20 Cent.
Ich habe folgende Formel verwendet:
Für die Preiserhöhnung:
f
Bedingte Bearbeitung; if(test,result_if_true[,result_if_false = ''])
(strpos(fixnum(round((round((ExpendituresPrevious * (WTP / 100)), 2)), 1)), ',') == 0, join(fixnum(round((round((ExpendituresPrevious * (WTP / 100)), 2)), 1)), ',00'), if(strpos(fixnum(round((round((ExpendituresPrevious * (WTP / 100)), 2)), 1)), ',') == strlen(fixnum(round((round((ExpendituresPrevious * (WTP / 100)), 2)), 1))) - 2, join(fixnum(round((round((ExpendituresPrevious * (WTP / 100)), 2)), 1)), '0'), fixnum(round((round((ExpendituresPrevious * (WTP / 100)), 2)), 1))))
für den neuen Preis:
if(strpos(fixnum(round((round(sum(ExpendituresPrevious, ExpendituresPrevious * WTP / 100), 2)), 1)), ',') == 0, join(fixnum(round((round(sum(ExpendituresPrevious, ExpendituresPrevious * WTP / 100), 2)), 1)), ',00'), if(strpos(fixnum(round((round(sum(ExpendituresPrevious, ExpendituresPrevious * WTP / 100), 2)), 1)), ',') == strlen(fixnum(round((round(sum(ExpendituresPrevious, ExpendituresPrevious * WTP / 100), 2)), 1))) - 2, join(fixnum(round((round(sum(ExpendituresPrevious, ExpendituresPrevious * WTP / 100), 2)), 1)), '0'), fixnum(round((round(sum(ExpendituresPrevious, ExpendituresPrevious * WTP / 100), 2)), 1))))