CompileErrors/C0030: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{CompileError |errortext = C0030 - Optimizer: Skipping precomputable node '<command>' because optimizing it might change output formatting. |description = C0030 is issued whe..." |
No edit summary |
||
| Line 5: | Line 5: | ||
|examplecode = FORMAT(SUB#, 'MyFormat') | |examplecode = FORMAT(SUB#, 'MyFormat') | ||
SUB#(NUM#('1.0'), NUM#('0.0')) | SUB#(NUM#('1.0'), NUM#('0.0')) { C0030 - Optimizer: Skipping precomputable node 'SUB#' because optimizing it might change output formatting. } | ||
|resolutiontext = Remove the unnecessary commands, or enclose them in an [[Output]] command to format them. | |resolutiontext = Remove the unnecessary commands, or enclose them in an [[Output]] command to format them. | ||
|resolutioncode = Output('MyFormat', 1.0) | |resolutioncode = Output('MyFormat', 1.0) | ||
}} | }} | ||
Revision as of 19:48, 28 April 2015
C0030 - Optimizer: Skipping precomputable node '<command>' because optimizing it might change output formatting.
Description
C0030 is issued when a math command could be precomputed, but it would affect the output if the command were formatted differently than the numeric constant.
Example of Cause
The result of SUB# is output to the stream after being formatted.
FORMAT(SUB#, 'MyFormat')
SUB#(NUM#('1.0'), NUM#('0.0')) { C0030 - Optimizer: Skipping precomputable node 'SUB#' because optimizing it might change output formatting. }
Resolution
Remove the unnecessary commands, or enclose them in an Output command to format them.
Output('MyFormat', 1.0)