OpenQuizz
Une application de gestion des contenus pédagogiques
Float Class Reference
Inheritance diagram for Float:
Collaboration diagram for Float:

Public Member Functions

def format (self, value)
 
- Public Member Functions inherited from Raw
def __init__ (self, default=None, attribute=None)
 
def output (self, key, obj)
 

Additional Inherited Members

- Data Fields inherited from Raw
 attribute
 
 default
 

Detailed Description

A double as IEEE-754 double precision.
ex : 3.141592653589793 3.1415926535897933e-06 3.141592653589793e+24 nan inf
-inf

Member Function Documentation

◆ format()

def format (   self,
  value 
)
Formats a field's value. No-op by default - field classes that
modify how the value of existing object keys should be presented should
override this and apply the appropriate formatting.

:param value: The value to format
:exception MarshallingException: In case of formatting problem

Ex::

    class TitleCase(Raw):
def format(self, value):
    return unicode(value).title()

Reimplemented from Raw.


The documentation for this class was generated from the following file: