𓃠 on Nostr: function toEnDigit(s){return ...
function toEnDigit(s){return s.replace(/[\u0660-\u0669\u06f0-\u06f9]/g,function(a){return a.charCodeAt(0)&15})}
parseFloat(num)をparseFloat(toEnDigit(num))にすればよさそう、知らんけど。
Published at
2024-09-19 05:54:01Event JSON
{
"id": "43517f3c37dcd5a1e04dc45b781daf4c027ce4822e4a125caf10522d07c5843f",
"pubkey": "b707d6be7fd9cc9e1aee83e81c3994156cfcf74ded5b09111930fdeeeb5a0c20",
"created_at": 1726725241,
"kind": 1,
"tags": [
[
"e",
"a7d9dce4973e3f02411c9a934748ed731d4a17f2938821974a08584e3723e767",
"",
"root"
],
[
"e",
"c3b7a94d74ea1b2caedf65fb3375ba54a89886c00ecf9ad4f9b51daa7b8f6c17",
"",
"reply"
],
[
"p",
"b707d6be7fd9cc9e1aee83e81c3994156cfcf74ded5b09111930fdeeeb5a0c20"
]
],
"content": "function toEnDigit(s){return s.replace(/[\\u0660-\\u0669\\u06f0-\\u06f9]/g,function(a){return a.charCodeAt(0)\u002615})}\nparseFloat(num)をparseFloat(toEnDigit(num))にすればよさそう、知らんけど。",
"sig": "76cf43377b93c7ac77674bc1192477c6311d3e2137ba7b8a285c742711f14878f48ffe0bd934deb369448340fd3c69fbbd7b5a90b77be5959dfbc4a3ea40d00a"
}