Why Number($dataMap.meta.??) give me string ?? and not number ??

Hi i have issue with Number() function.


WhereAreYouinGalaxi = [];


function QuestMenu(WhatToDo) {
WhereAreYouinGalaxi = [Number($dataMap.meta.Galaxi),Number($dataMap.meta.Planet)]; //[Galaxi,Planet];
}





Why my var WhereAreYouinGalaxi return ['0','0'] and not [0,0] ???


console.log(WhereAreYouinGalaxi); == ['0','0'] ???


Tanks for helping 
Works for me.  

Code:
<Galaxy: 0>
<Planet: 0>

console.log($dataMap.meta.Galaxy);
console.log(Number($dataMap.meta.Galaxy));
console.log($dataMap.meta.Planet);
console.log(Number($dataMap.meta.Planet));
var where = [Number($dataMap.meta.Galaxy), Number($dataMap.meta.Planet)];
console.log(where);

Code:
 0
0
 0
0
[0, 0]



Please show a screenshot of your map so the notes are visible.
Works for me.  

Ho am sorry, i found a mistake.
Is true is work now.
I bad do a CTRL+S, so now is save with the number function ...
🤣
You don't have to quote an entire post when you're replying immediately after, especially when you're not actually referring to anything in the post you're quoting.

Original thread: https://forums.rpgmakerweb.com/threads/why-number-datamap-meta-give-me-string-and-not-number.72283/