conversion of double to int
Show older comments
i had an array of 1*10 double named Q(i). I want to find modulo function of these 10 values with 256. But am getting wrong answers. May be its the problem of types. Will you please help me to solve?
5 Comments
Walter Roberson
on 21 Jul 2017
Could you give some examples of the values and what you are observing ?
SNEHA P S
on 21 Jul 2017
Edited: Walter Roberson
on 21 Jul 2017
Adam
on 21 Jul 2017
And what is the problem? That seems like the right answer to me.
SNEHA P S
on 21 Jul 2017
Walter Roberson
on 21 Jul 2017
Give the command
format long g
And then display the Q value again
Accepted Answer
More Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!