-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fmi2_import_get_real_variable_start(fmi2_import_real_variable_t*) API is returning trimmed value #124
Comments
Hi SudeepGhoshIN, I did a small test with the values you provided and do not observe any truncation issues. However, the truncation you describe would be consistent with a default accuracy you would get with Please verify this is not a printing issue? If not, can you please provide a minimal reproducer (complete call sequence + modelDescription)? /Peter |
ModelDescription:
|
Hi SudeepGhoshIN, I took your
does produce the expected output
If this does not help, please provide a complete reproducer that produces the unexpected output. /Peter |
Hi Peter, fmi2_import_real_variable_t *rv = fmi2_import_get_variable_as_real(var);
|
Hi SudeepGhoshIN, 1.00000000 is identical to 1.0, so I don't see the issue? I suppose this could be made prettier with appropriate formatting for /Peter |
Hi Team,
I have a requirement of fetching start value for signal variables in FMI2.0.
As part of this , I am trying to utilize fmi2_import_get_real_variable_start(fmi2_import_real_variable_t*) API to get the variable value start. But unfortunately, above mentioned API is returning trimmed value, so I could not proceed further for retrieving the proper start value.
My question is, is it expected behavior for fmi2_import_get_real_variable_start(fmi2_import_real_variable_t*) API not to read start value and return trimmed value as bellow ?
If so then what is the pattern ?
We are using this code->
fmi2_import_real_variable_t* rv = fmi2_import_get_variable_as_real(var);
fmi2_real_t StartValue = fmi2_import_get_real_variable_start(rv);
We are getting this value:
Thanks,
Sudeep
The text was updated successfully, but these errors were encountered: