Hello!
Yanfly Core Engine Line:283
I’d like to know if it’s possible to change digit script :
1,234,567 to 1’234’567
I tried to simpely change…
class Numeric#--------------------------------------------------------------------------# new method: group_digits#--------------------------------------------------------------------------def groupreturn self.to_s unless YEA::CORE::GROUP_DIGITSself.to_s.gsub(/(\d)(?=\d{3}+(?:\.|$))(\d{3}\..*)?/,'\1,\2')endend # Numericto...
class Numeric#--------------------------------------------------------------------------# new method: group_digits#--------------------------------------------------------------------------def groupreturn self.to_s unless YEA::CORE::GROUP_DIGITSself.to_s.gsub(/(\d)(?=\d{3}+(?:\.|$))(\d{3}\..*)?/,'\1,\2') # (... ?/''\1,\2')endend # Numeric…but of course it doesnt work ^_^;
I dont understand a single sign of that blahblah. I just thought it was logical ^_^;
Merci for help.
Yanfly Core Engine Line:283
I’d like to know if it’s possible to change digit script :
1,234,567 to 1’234’567
I tried to simpely change…
class Numeric#--------------------------------------------------------------------------# new method: group_digits#--------------------------------------------------------------------------def groupreturn self.to_s unless YEA::CORE::GROUP_DIGITSself.to_s.gsub(/(\d)(?=\d{3}+(?:\.|$))(\d{3}\..*)?/,'\1,\2')endend # Numericto...
class Numeric#--------------------------------------------------------------------------# new method: group_digits#--------------------------------------------------------------------------def groupreturn self.to_s unless YEA::CORE::GROUP_DIGITSself.to_s.gsub(/(\d)(?=\d{3}+(?:\.|$))(\d{3}\..*)?/,'\1,\2') # (... ?/''\1,\2')endend # Numeric…but of course it doesnt work ^_^;
I dont understand a single sign of that blahblah. I just thought it was logical ^_^;
Merci for help.