Compiler warning on possible loss of precision
Compiler warning on possible loss of precision
Just a small wish that 4D compiler would detect and warn on possible losses of precision.
Right now 4D just truncates the decimal value without a peep.
SQL Engine
Begin SQL
UPDATE Table
SET FieldInteger =CAST(1.4 as INT)
WHERE id=29168
End SQL
Native 4D code
// assume loadable record
LOAD RECORD([Table])
[Table]FieldInteger:=1.4
SAVE RECORD([Table])
Link to official 4D feature request (login required).
Author’s Note
Initial md
Generated using https://github.com/jsr6720/wordpress-html-scraper-to-md
Original Wordpress categories: [‘4D’, ‘Wish List’]
Original Wordpress tags: “4D”, “Wish List”, “possible loss of precision”, “real to integer”
Original Wordpress comments: 1 Comment
Significant Revisions
tags: 2011, wordpress, txcowboycoder, 4D, wish-list, data-types, error-messages
- May 6th, 2024 Converted to jekyll markdown format and copied to personal site
- Apr 25th, 2011 Originally published on txcowboycoder wordpress site