Hi Harshad,
Good day! For case 1 you can very well use the Decimal data type and For case2 you can use the Long data type. Hope this helps and good luck.
For more information please refer to the Mendix Documentation https://docs.mendix.com/refguide/attributes#type