AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Rundungsproblem

Ein Thema von khh · begonnen am 11. Aug 2009 · letzter Beitrag vom 14. Aug 2009
Antwort Antwort
Seite 3 von 3     123   
Benutzerbild von Olli73
Olli73

Registriert seit: 25. Apr 2008
Ort: Neunkirchen
662 Beiträge
 
#21

Re: Rundungsproblem

  Alt 14. Aug 2009, 14:58
Zitat von khh:
Zitat von mkinzler:
Einfach nach dem Trunc durch 1000 teilen
so hatte ich mir das auch gedacht,leider funktioniert das nicht, weiss der Teufel warum.
wenn ich _nicht_ teile steht im currency-feld 8500000, also das tausendfache was ich brauche
teile ich durch 10 steht im currency-feld 850000
teile ich durch 100 steht im currency-feld 80000
teile ich durch 1000 steht im currency-feld 0

was läuft da schief?
Teile mal durch 1000.00
Bei Integer/Integer kommt in Firebird Integer raus (Nachkommastellen abgeschnitten).
Zur Veranschaulichung teste mal:
SQL-Code:
select 1, 3/4 from rdb$database
union all
select 2, 3/4.0 from rdb$database
union all
select 3, 3/4.00 from rdb$database
union all
select 4, 3.0/4 from rdb$database
union all
select 5, 3.00/4 from rdb$database
union all
select 6, 3.0/4.0 from rdb$database
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 3 von 3     123   


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:03 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz