Java: add float cast

This commit is contained in:
Jami Cogswell
2022-12-15 15:23:28 -05:00
parent b68a9a51e2
commit cfeedb5cb4

View File

@@ -63,9 +63,9 @@ where
all = getNumApis(package) and
non = all - (generatedOnly + both + manualOnly) and
// Proportion of coverage
coverage = (generatedOnly + both + manualOnly) / all and
generatedCoverage = generated / all and
manualCoverage = manual / all and
coverage = (generatedOnly + both + manualOnly).(float) / all and
generatedCoverage = generated.(float) / all and
manualCoverage = manual.(float) / all and
// Proportion of manual models covered by generated ones
manualCoveredByGenerated = (both.(float) / (both + manualOnly)) and
// Proportion of generated models covered by manual ones