How to remove zero from float value.?

Illustration
Mira le - 2023-06-19T12:29:20+00:00
Question: How to remove zero from float value.?

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

Expert Answer

Profile picture of Neeta Dsouza Neeta Dsouza answered . 2025-11-20

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)

 


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!