首页 文章
  • 1 votes
     answers
     views

    将元素从std_logic_vector转换为整数vhdl

    我正在研究一个接收信号并将其添加到矢量中的函数 . 一旦添加了足够的信号,在我的情况4中,然后我遍历向量并将其添加到我的进程中的整数变量 . 我无法将单个元素转换为整数 . 我尝试使用to_integer(unsigned(myVector)),但这是二进制到十进制的转换 . 我只是想要它,所以当我循环我的矢量像这样: for i in 0 to myVector'length loop ...
  • 1 votes
     answers
     views

    在java中转换.ToInt64等价物

    我在c#中尝试以下代码,它给出了如下结果: long dec1 = Convert.ToInt64("B62FD56EFD5B375D", 16); 结果:-531879796222753398 我试图在java中这样做,但我总是得到 NumberFormatException ,因为String中有字母数字 . 我在java中编码的是: Long.parseLong(&qu...
  • 0 votes
     answers
     views

    使用df.astype的pandas错误

    我只是想将一列数字字符串转换为整数 . 这就是我正在尝试的: df.date = df.date.astype(np.int64) 但是我收到了警告: /Users/austin/anaconda/lib/python3.5/site-packages/pandas/core/generic.py:2773:SettingWithCopyWarning:尝试在DataFrame的切片副本上设置...

热门问题