While taking measurement for the mattress use ONLY the inside parts of the bed i.e. the exact place where the mattress will be placed. Measurement should be taken from corner to corner (length and breadth) as well as from the centres.
In case of coir foam mattress even difference of one inch is critical. In case of cotton mattresses 1-2 inches’ difference does not matter much as they spread after use.
To measure the curving corner of your bed use old newspapers to take forming of the curve.
Take measurements in inches or centimetres or millimeter for more accuracy.