[Solved] Cannot implicitly convert type ‘decimal’ to ‘int’. An explicit conversion exists (are you missing a cast?)

[ad_1]

You have the possibility to declare the variable as decimal, like this:

decimal caloriesBurned;

[ad_2]

solved Cannot implicitly convert type ‘decimal’ to ‘int’. An explicit conversion exists (are you missing a cast?)