Message Boards Message Boards

Unexpected behavior of Hue?

Posted 2 years ago

I'm approaching the Wolfram Language and noticed the following:

Why do I get two different colors?

I was supposing that 1/2 is interpreted as an integer division, but:

So why?

2 Replies
Posted 2 years ago

This seems to be a problem only on Wolfram Cloud. On Mathematica desktop there is no problem.

Where both

Hue[1/2]
Hue[0.5]

returns the same light blue color.

POSTED BY: Hans Milton

I'm discovering a number of minor issues in Mathematica Online and I'm going to report them.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract