any floating point number is separated into two parts i) integer ii)floating point
for ex if x=-12.93 the program gives -12 and .93 as the two outputs
format:[p,q]=truncate(x);
where x is a floating point number
Cite As
shreedhar (2024). truncation (https://www.mathworks.com/matlabcentral/fileexchange/29653-truncation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2007b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Time Series Objects in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |