Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How to explain this?

Subject: How to explain this?

From: Bijie

Date: 30 Jul, 2010 15:33:05

Message: 1 of 2

Please any expert here can help me about this?

>> 0.7+0.1

ans =

    0.8000

>> ans<0.8

ans =

     1

Why not 0?
Thanks in advance!

Subject: How to explain this?

From: Sean

Date: 30 Jul, 2010 15:39:04

Message: 2 of 2

"Bijie " <renbijie@yahoo.com.cn> wrote in message <i2urbg$s98$1@fred.mathworks.com>...
> Please any expert here can help me about this?
>
> >> 0.7+0.1
>
> ans =
>
> 0.8000
>
> >> ans<0.8
>
> ans =
>
> 1
>
> Why not 0?
> Thanks in advance!

Question 6.1
http://matlabwiki.mathworks.com/MATLAB_FAQ

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us