remove uneeded percentage code

This commit is contained in:
Chris Cromer 2019-05-26 17:21:41 -04:00
parent 7343bbeb00
commit 263c810544
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A

View File

@ -21,17 +21,6 @@ namespace Colegio {
INVALIDVERIFIER INVALIDVERIFIER
} }
public class Percentage : Object {
public static string format_float (float value) {
return (value * 100).to_string () + "%";
}
public static string format_double (double value) {
// Remove the double precision by converting to float
return ((float) (value * (double) 100)).to_string () + "%";
}
}
public class Rut : Object { public class Rut : Object {
private string clean_rut; private string clean_rut;
private string pretty_rut; private string pretty_rut;