Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to convert PMReal to int?

Enthusiast ,
Nov 08, 2016 Nov 08, 2016

Hi All,

How to convert PMReal to int?

Regards,

Chinna

TOPICS
SDK
784
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Nov 09, 2016 Nov 09, 2016

Hi Chinna,

there are two functions "int16 ToInt16(const PMReal&)" and "int32 ToInt32(const PMReal&)".

Markus

Translate
Enthusiast ,
Nov 09, 2016 Nov 09, 2016

Hi Chinna,

there are two functions "int16 ToInt16(const PMReal&)" and "int32 ToInt32(const PMReal&)".

Markus

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 09, 2016 Nov 09, 2016

Hi Markus,

Thanks for your reply,

It gives the following error.

Error:No suitable conversion function from "PMReal" to "int16"  Exists.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 09, 2016 Nov 09, 2016

Hi Chinna,

did you include PMReal.h and how do you call the function?

Markus

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 09, 2016 Nov 09, 2016
LATEST

Thank you Markus, it works.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines