Managing Currency Digits in Ruby

Aspose.Tasks - Getting Currency Digits

To get Currency Digits using Aspose.Tasks Java for Ruby, call get_currency_digits method of CurrencyDigits module. Here you can see example code.

1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
2puts "Currency Digits: " + project.get(Rjb::import('com.aspose.tasks.Prj').CURRENCY_DIGITS).to_string

Aspose.Tasks - Setting Currency Digits

To set Currency Digits using Aspose.Tasks Java for Ruby, call set_currency_digits method of CurrencyDigits module. Here you can see example code.

1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
2project.set(Rjb::import('com.aspose.tasks.Prj').CURRENCY_DIGITS, 2)
3project.save("ProjectCurrencyDigits.mpp", Rjb::import('com.aspose.tasks.SaveFileFormat').MPP)
4puts "Set currency digits."

Download Running Code

Download Managing Currency Digits (Aspose.Tasks) from any of the below mentioned social coding sites:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.