How to remove zero from float value.?

Technical Source
1 min readJun 23, 2023

Hello everyone,

I have a problem I would like to help me solving it

i have float value when I make division opeation and I obained value like this: 0.9093 0.9074 0.9014

I use round but I got: 0.9000 0.900 0.900 0.900

Iwant to remove these zeros to be 0.9 0.9 0.9 0.9

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help , Finance Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

x = [0.9093    0.9074    0.9014]
x = 1×3
0.9093 0.9074 0.9014
vpa(round(x,1),2)
ans = (0.9  0.9  0.9)

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.