def float_constructor(loader, node):
s = loader.construct_scalar(node)<EOL>if s == '<STR_LIT>':<EOL><INDENT>return Decimal('<STR_LIT>')<EOL><DEDENT>elif s == '<STR_LIT>':<EOL><INDENT>return -Decimal('<STR_LIT>')<EOL><DEDENT>elif s == '<STR_LIT>':<EOL><INDENT>return Decimal('<STR_LIT>')<EOL><DEDENT>return Decimal(s)<EOL>
Construct Decimal from YAML float encoding.