You are here

constant FORMATTED_NUMBER_BIGINT_SUPPORT_ENABLED in Formatted Number 6

@TODO - Enable BIGINT support. O'rly?

See http://www.php.net/manual/en/language.types.integer.php

  • PHP does not have builtin support for BIGINT, and it appears it won't. See http://marc.info/?t=90279125900002
  • PHP int precision is platform dependent (CPU: x32 -vs- x64).
  • Since PHP 4.4.0 and 5.0.5: PHP_INT_SIZE, PHP_INT_MAX.
  • Numbers beyond builtin integer bounds are interpreted as a float instead.
  • Using floats might be a solution in certain cases, but it should be noted that precision issues may arise.
  • A possible alternative could be working with BIGINTs using string type, and use BCMath/GMP extensions to perform math operations.
  • Drupal Database API does not support unsigned integers. http://drupal.org/node/333788
  • We should also add BIGINT support to Format Number API.

WARNING: Do not change the constant below unless you know what you're doing! ;-)

1 use of FORMATTED_NUMBER_BIGINT_SUPPORT_ENABLED
formatted_number_get_fields_info in ./formatted_number.module
Helper function for field info/settings.

File

./formatted_number.module, line 30
Defines CCK numeric types where thousands separator and decimal point are inherited from the Format Number API module.

Code

define('FORMATTED_NUMBER_BIGINT_SUPPORT_ENABLED', 0);