Raw Attainment Marks - decimal values

Dear @sandra @Ali

I thought I should be able to input a decimal value for Raw Attainment Marks. For example, entering 5.5/10 should calculate as 55%, which is what the teacher intends. However, I receive the message “May contain only numbers”, so it seems only whole numbers are allowed.

I can import decimal values successfully, but I’m not sure whether that’s the intended behavior. Could you please clarify?

Thanks,
Tieku

Hi @tiekubd
Thank you for flagging the issue. Yes, the system should allow decimal values for the Raw Attainment Marks. I am happy to inform that the bug has been fixed in v30. Markbook: Allow user to inout decimal values in raw marks box by ali-ichk · Pull Request #2021 · GibbonEdu/core · GitHub. Thanks.

1 Like

Dear @Ali i have similar observation, but for me when i add a custom field, i am not able to choose decimal type i only see number and i want to use it to store height, weight and BMI and i was expecting xx.xx but i can only type xx. is adding decimal type possible?

Hi @alkindy Thanks for the heads up, I had a look at the custom field code, which should have already supported decimal values, and it looks like this is a bug in the validation code. I’ve fixed it here, which is one line, so you could apply it to your system if you’d like. Otherwise, it will be part of the v30.0.01 patch due to release next week.

1 Like

that is great, thank you very much