Skip to content
This repository has been archived by the owner on Feb 23, 2019. It is now read-only.

metadata-handler: Handle single-number precisions #153

Merged

Conversation

rhoggSugarcrm
Copy link
Contributor

@rhoggSugarcrm rhoggSugarcrm commented Feb 25, 2017

https://msdn.microsoft.com/en-us/library/ms187746.aspx says that
the default scale is 0; i.e. that there should be no digits after the
decimal point.

if (afterDecimal > 0) {
val += `.${faker.random.number({ max: Math.pow(10, afterDecimal) })}`;
}
val = parseFloat(val);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: we should probably switch this to Number.parseFloat.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did that; it's #165

@rhoggSugarcrm rhoggSugarcrm force-pushed the handle-single-digit-precisons branch from 0ad549d to 444f367 Compare May 18, 2017 17:53
@rhoggSugarcrm rhoggSugarcrm force-pushed the handle-single-digit-precisons branch 3 times, most recently from 71bb5bf to 957d018 Compare July 11, 2017 17:43
@sugarcrm sugarcrm deleted a comment from coveralls Aug 30, 2017
@sugarcrm sugarcrm deleted a comment from coveralls Aug 30, 2017
@sugarcrm sugarcrm deleted a comment from coveralls Aug 30, 2017
@sugarcrm sugarcrm deleted a comment from coveralls Aug 30, 2017
@sugarcrm sugarcrm deleted a comment from coveralls Aug 30, 2017
@sugarcrm sugarcrm deleted a comment from coveralls Aug 30, 2017
@sugarcrm sugarcrm deleted a comment from coveralls Aug 30, 2017
@sugarcrm sugarcrm deleted a comment from coveralls Aug 30, 2017
@sugarcrm sugarcrm deleted a comment from coveralls Aug 30, 2017
@sugarcrm sugarcrm deleted a comment from coveralls Aug 30, 2017
@sugarcrm sugarcrm deleted a comment from coveralls Aug 31, 2017
@sugarcrm sugarcrm deleted a comment from coveralls Sep 5, 2017
@sugarcrm sugarcrm deleted a comment from coveralls Sep 19, 2017
@rhoggSugarcrm rhoggSugarcrm force-pushed the handle-single-digit-precisons branch 2 times, most recently from e281edc to 1ae94c4 Compare September 27, 2017 19:37
https://msdn.microsoft.com/en-us/library/ms187746.aspx says that
the default scale is 0; i.e. that there should be no digits after the
decimal point.

Arguably, this is a little silly, but specs are specs.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 95.965% when pulling 29d7f0c on rhoggSugarcrm:handle-single-digit-precisons into 782b4a4 on sugarcrm:master.

@sugarcrm sugarcrm deleted a comment from coveralls Sep 27, 2017
@sugarcrm sugarcrm deleted a comment from coveralls Sep 27, 2017
@sugarcrm sugarcrm deleted a comment from coveralls Sep 27, 2017
@sugarcrm sugarcrm deleted a comment from coveralls Sep 27, 2017
Copy link
Contributor

@jcsmorais jcsmorais left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@jcsmorais jcsmorais merged commit 7d25d1d into sugarcrm:master Sep 27, 2017
@rhoggSugarcrm rhoggSugarcrm deleted the handle-single-digit-precisons branch September 27, 2017 20:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants