-
Das genaueste Ergebnis erhält man mit Eval(R). Die Erweiterung (M) ist der Standard!
Wenn man das Ganze global (für alle Rechenoperationen) innerhalb der Quelle setzen möchte, kann man auch einfach das Schlüssel-Wort EXPROPTS(*RESDECPOS) in den H-Bestimmungen angeben.
Auszug aus der RPG-Reference:
The EXPROPTS (expression options) keyword specifies the type of precision rules to be used for an entire program. If not specified or specified with *MAXDIGITS, the default precision rules apply. If EXPROPTS is specified, with *RESDECPOS, the "Result Decimal Position" precision rules apply and force intermediate results in expressions to have no fewer decimal positions than the result.
Note: Operation code extenders R and M are the same as EXPROPTS(*RESDECPOS) and EXPROPTS(*MAXDIGITS) respectively, but for single free-form expressions
Birgitta
Similar Threads
-
By dinie in forum NEWSboard Programmierung
Antworten: 9
Letzter Beitrag: 22-06-11, 10:57
-
By Jenne in forum IBM i Hauptforum
Antworten: 10
Letzter Beitrag: 24-11-09, 13:58
-
By kr1s in forum NEWSboard Programmierung
Antworten: 5
Letzter Beitrag: 08-08-06, 14:16
-
By Spoldo in forum NEWSboard Programmierung
Antworten: 5
Letzter Beitrag: 19-04-05, 15:32
-
By JonnyRico in forum NEWSboard Programmierung
Antworten: 3
Letzter Beitrag: 03-04-03, 10:48
Berechtigungen
- Neue Themen erstellen: Nein
- Themen beantworten: Nein
- You may not post attachments
- You may not edit your posts
-
Foren-Regeln
|
Erweiterte Foren Suche
Google Foren Suche
Forum & Artikel Update eMail
AS/400 / IBM i
Server Expert Gruppen
Unternehmens IT
|
Kategorien online Artikel
- Big Data, Analytics, BI, MIS
- Cloud, Social Media, Devices
- DMS, Archivierung, Druck
- ERP + Add-ons, Business Software
- Hochverfügbarkeit
- Human Resources, Personal
- IBM Announcements
- IT-Karikaturen
- Leitartikel
- Load`n`go
- Messen, Veranstaltungen
- NEWSolutions Dossiers
- Programmierung
- Security
- Software Development + Change Mgmt.
- Solutions & Provider
- Speicher – Storage
- Strategische Berichte
- Systemmanagement
- Tools, Hot-Tips
Auf dem Laufenden bleiben
|
Bookmarks