Autor Beitrag
landwehr
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 46

WIN XP, WIN 7, WIN 8
Delphi 6, Delphi 2007, Delphi XE2
BeitragVerfasst: Mi 10.11.10 11:52 
Hallo,

folgendes Problem. In der Schweiz wird die MwSt auf auf o oder 5 in der zweiten Nachkommastelle gerundet.

Beispiel: Betrag 55,25 CHF 5% MwSt wäre 2,76 CHF nun muss aber auf 2,75 gerundet werden.

Ist der MwSt Betrag 2,72 muß auf 2,70 gerundet werden
2,74 auf 2,75
2,76 auf 2,75
2,78 auf 2,80

Hat jemand eine Formel für Delphi die, die MwSt für die Schweiz korrekt berechnet?

Für eine schnelle Hilfe seid herzlichst bedankt.

Walter
MaxWurzel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 77
Erhaltene Danke: 10



BeitragVerfasst: Mi 10.11.10 12:17 
ausblenden Delphi-Quelltext
1:
roundto((strtofloat(EINGABE))*2,-1)/2;					
landwehr Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 46

WIN XP, WIN 7, WIN 8
Delphi 6, Delphi 2007, Delphi XE2
BeitragVerfasst: Do 11.11.10 13:29 
Danke das passt.