CompileErrors/C0029: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{CompileError |errortext = C0029 - Optimizer: Skipping constant NUM# because optimizing it might change output formatting |description = C0029 is issued when a NUM# could be ..." |
No edit summary |
||
| Line 5: | Line 5: | ||
|examplecode = FORMAT(NUM#, 'MyFormat') | |examplecode = FORMAT(NUM#, 'MyFormat') | ||
NUM#('1.0') | NUM#('1.0') { C0029 - Optimizer: Skipping constant NUM# because optimizing it might change output formatting } | ||
|resolutiontext = Replace the NUM# command with a constant. Use the [[Output]] command if you need to format it. | |resolutiontext = Replace the NUM# command with a constant. Use the [[Output]] command if you need to format it. | ||
|resolutioncode = Output('MyFormat', 1.0) | |resolutioncode = Output('MyFormat', 1.0) | ||
}} | }} | ||
Revision as of 19:49, 28 April 2015
C0029 - Optimizer: Skipping constant NUM# because optimizing it might change output formatting
Description
C0029 is issued when a NUM# could be optimized into a constant, but it would affect the output if NUM# were formatted differently than the numeric constant.
Example of Cause
The result of NUM# is output to the stream after being formatted.
FORMAT(NUM#, 'MyFormat')
NUM#('1.0') { C0029 - Optimizer: Skipping constant NUM# because optimizing it might change output formatting }
Resolution
Replace the NUM# command with a constant. Use the Output command if you need to format it.
Output('MyFormat', 1.0)