+ 22

Why answer is "6" if said "Math.min(-6;3)"?

Please, help me, guys

15th Dec 2019, 7:12 PM
Alina
Alina - avatar
6 Answers
+ 18
ŰłÙ„Ű§Ù…
17th Dec 2019, 3:36 PM
Alina
Alina - avatar
+ 16
Thanks
15th Dec 2019, 7:23 PM
Alina
Alina - avatar
+ 6
Alina if it is like this Math.min(-6, 3) then answer will be -6 But if it is like this Math.abs(Math.min(-6, 3)) then answer will be 6 check in this code https://code.sololearn.com/cf31lW5wyiqm/?ref=app
16th Dec 2019, 11:08 AM
AÍąJ
AÍąJ - avatar
+ 4
Math.min should be typed like this Math.min(-6,3); No semicolon in the parentheses Can you post the code this is used in? I got -6
15th Dec 2019, 7:20 PM
Odyel
Odyel - avatar
+ 2
Ű§Ù„Ùˆ ŰŻÙˆŰłŰȘ
17th Dec 2019, 2:46 PM
ÙˆŰ§Ű±Ű« ÙˆŰ§Ű±Ű« ÙŸŰ±ŰŻÛŒŰł
ÙˆŰ§Ű±Ű« ÙˆŰ§Ű±Ű« ÙŸŰ±ŰŻÛŒŰł - avatar