MATLAB: How can I precise number in double doublefloatMATLAB Hello, I want to ask you how I can precise the numbers after comma for example: x=0.2584 the result should be x=0.2 Please help me! Best Answer If the numbers are positivex = 0.2584 y = floor(x*10)/10If both positive and negative 'x' are possibley = sign(x)*floor(abs(x)*10)/10 Related SolutionsMATLAB: How can I convert a decimal to an integer fix to strip all the decimalsround can change the integer partfix (1.9) % 1round(1.9) % 2 MATLAB: How to generate and precise double value randi([0 10], size(x))./10 Related QuestionHow to round number up to a specific number of decimal placesPrecise conversions from double to symbolicHow to avoid the loss of the last digit (it gives a zero instead of a one)Double integrate a precise series of numbersIf a number is 0.25 how can i get the rounded value of that number ..how can i convertAbout the calculation preciseHow to get floating point number upto 4 decimal points
Best Answer