Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Number.prototype.toPrecision() #238

Closed
wants to merge 1 commit into from
Closed

Implement Number.prototype.toPrecision() #238

wants to merge 1 commit into from

Conversation

dbatyai
Copy link
Member

@dbatyai dbatyai commented Jun 25, 2015

JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com

@dbatyai dbatyai added ecma builtins Related to ECMA built-in routines development Feature implementation labels Jun 25, 2015
@dbatyai dbatyai added this to the ECMA builtins milestone Jun 25, 2015

if (is_negative)
{
ecma_string_t *neg_str_p = ecma_new_ecma_string ((const ecma_char_t *) "-");
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please add magic string for this?

@egavrin
Copy link
Contributor

egavrin commented Jun 25, 2015

Good to me.

@egavrin egavrin assigned ruben-ayrapetyan and unassigned dbatyai Jun 25, 2015
@ruben-ayrapetyan
Copy link
Contributor

Looks good to me.

int digit = 0;

/* 10.c, Exponential notation.*/
if (exponent < -5 || exponent > precision)
Copy link
Contributor

Choose a reason for hiding this comment

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

there are two space: exponent < -5

@egavrin
Copy link
Contributor

egavrin commented Jun 25, 2015

make push, after fixing

@galpeter galpeter assigned kkristof and unassigned galpeter Jun 25, 2015
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com
@kkristof
Copy link
Contributor

lgtm

@egavrin
Copy link
Contributor

egavrin commented Jun 30, 2015

make push

@egavrin egavrin assigned dbatyai and unassigned kkristof Jun 30, 2015
@dbatyai
Copy link
Member Author

dbatyai commented Jul 1, 2015

merged: 713b433

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Feature implementation ecma builtins Related to ECMA built-in routines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants