# 整形. 0埋め(zero padding)

# JavaScript

('0000000000' + v).slice(-n)
function zeroPad(v, n)
    return ('0000000000' + v).slice(-n);
}

# PHP

str_pad($s, width, '0');

# Python

s.rjust(width, '0')

# Ruby

s.rjust(width, '0')

[ 📩 ご意見 ]