DynamoDS / DynamoRevit

Dynamo Libraries for Revit
https://dynamobim.org
334 stars 187 forks source link

Max value of number #1351

Open snilling opened 7 years ago

snilling commented 7 years ago

Dynamo version

1.2.0.2831

Revit version

Revit 2016

Operating system

Windows 10

What did you do?

I am using large numbers to transform Points from real world coordinates to Revit Project coordinates. These often exceed 2147483647 (2^31-1). Numbers this big inserted as integer (without desimal digits) in Code Block seems to be stored as Int.32, and the value is not stored correctly. If i add a decimal separator and desimal digits behind the number seems to be stored as a Long value(max 2^63-1)?

What did you expect to see?

What did you see instead?

ke-yu commented 7 years ago

Hi @snilling Dynamo's integer is int64, and we've fixed the representation issue for big number. Could you give more details about this issue?

snilling commented 7 years ago

Hello Please see attached snip from dynamo ☺ [cid:image001.png@01D22E37.F9752A50]

Med venleg helsing

OLA GUNNAR SKIPPERVIK Bygg og Industri, Konstruksjoner

(+47) 55 62 37 70 | ola.gunnar.skippervik@multiconsult.nomailto:ola.gunnar.skippervik@multiconsult.no www.multiconsult.nohttp://www.multiconsult.no/ [cid:image002.png@01D22E37.F9752A50]

From: Yu Ke [mailto:notifications@github.com] Sent: fredag 21. oktober 2016 17.50 To: DynamoDS/DynamoRevit DynamoRevit@noreply.github.com Cc: Skippervik, Ola Gunnar ola.gunnar.skippervik@multiconsult.no; Mention mention@noreply.github.com Subject: Re: [DynamoDS/DynamoRevit] Max value of number (#1351)

Hi @snillinghttps://github.com/snilling Dynamo's integer is int64, and we've fixed the representation issue for big number. Could you give more details about this issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/DynamoDS/DynamoRevit/issues/1351#issuecomment-255413895, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJ8YDkvrTNW3f-z-YGBQ-OjEbw4GuHCIks5q2N8MgaJpZM4KZB56.