{"action":"created","issue":{"url":"https://api.github.com/repos/LaxarJS/laxar_uikit/issues/92","labels_url":"https://api.github.com/repos/LaxarJS/laxar_uikit/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/LaxarJS/laxar_uikit/issues/92/comments","events_url":"https://api.github.com/repos/LaxarJS/laxar_uikit/issues/92/events","html_url":"https://github.com/LaxarJS/laxar_uikit/issues/92","id":54301365,"number":92,"title":"axInput: formatting option for decimals with variable precision","user":{"login":"x1B","id":327904,"avatar_url":"https://avatars.githubusercontent.com/u/327904?v=3","gravatar_id":"","url":"https://api.github.com/users/x1B","html_url":"https://github.com/x1B","followers_url":"https://api.github.com/users/x1B/followers","following_url":"https://api.github.com/users/x1B/following{/other_user}","gists_url":"https://api.github.com/users/x1B/gists{/gist_id}","starred_url":"https://api.github.com/users/x1B/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x1B/subscriptions","organizations_url":"https://api.github.com/users/x1B/orgs","repos_url":"https://api.github.com/users/x1B/repos","events_url":"https://api.github.com/users/x1B/events{/privacy}","received_events_url":"https://api.github.com/users/x1B/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/LaxarJS/laxar_uikit/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-14T09:37:14Z","updated_at":"2015-01-15T13:13:10Z","closed_at":"2015-01-15T13:13:10Z","body":"Currently, the `axInputFormatting` attribute of the `axInput` control only allows for fixed-precision decimals and pads fractions with trailing zeros as needed.\r\n\r\nAn additional option `decimalTruncation` should be implemented, with three possible values:\r\n* `'FIXED'`: The default behavior: always uses the `decimalPlaces` as specified, uses trailing zeros\r\n* `'BOUNDED'`: Uses precision up to `decimalPlaces`, but strips trailing zeros\r\n* `'NONE'`: Always uses maximum precision (15-17 decimal digits) and strips trailing zeros\r\n"},"comment":{"url":"https://api.github.com/repos/LaxarJS/laxar_uikit/issues/comments/70083443","html_url":"https://github.com/LaxarJS/laxar_uikit/issues/92#issuecomment-70083443","issue_url":"https://api.github.com/repos/LaxarJS/laxar_uikit/issues/92","id":70083443,"user":{"login":"x1B","id":327904,"avatar_url":"https://avatars.githubusercontent.com/u/327904?v=3","gravatar_id":"","url":"https://api.github.com/users/x1B","html_url":"https://github.com/x1B","followers_url":"https://api.github.com/users/x1B/followers","following_url":"https://api.github.com/users/x1B/following{/other_user}","gists_url":"https://api.github.com/users/x1B/gists{/gist_id}","starred_url":"https://api.github.com/users/x1B/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x1B/subscriptions","organizations_url":"https://api.github.com/users/x1B/orgs","repos_url":"https://api.github.com/users/x1B/repos","events_url":"https://api.github.com/users/x1B/events{/privacy}","received_events_url":"https://api.github.com/users/x1B/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T13:13:09Z","updated_at":"2015-01-15T13:13:09Z","body":"### New Feature\r\n\r\nThe `axInputFormatting` attribute of the `axInput` control now supports an additional formatting option for inputs of type `'decimal'`:\r\n\r\n* `decimalTruncation` (default: `'FIXED'`): How to treat insignificant decimal places (trailing zeros):\r\n   - `'FIXED'`: uses a fraction length of exactly `decimalPlaces`, padding with zeros\r\n   - `'BOUNDED'`: uses a fraction length up to `decimalPlaces`, no padding\r\n   - `'NONE'`: unbounded fraction length (only limited by numeric precision), no padding\r\n\r\nThe new option is affected by the existing option `decimalPlaces` whose default value is `2`.\r\n\r\n\r\n### Availability\r\n\r\nMerged into `master` (`v1.0.0`) and `master-0.x` (`v0.20.0`)."}}